alifestd_make_ancestor_list_col
- alifestd_make_ancestor_list_col(ids: Series_T, ancestor_ids: Series_T, root_ancestor_token: str = 'none') Series_T
- Translate a column of integer ancestor id values into alife standard
ancestor_list representation.
The option root_ancestor_token will be sandwiched in brackets to create the ancestor list entry for genesis organisms. For example, the token “None” will yield the entry “[None]” and the token “” will yield the entry “[]”. Default “none”.
This function also accepts a polars.DataFrame, for which there is a separate delegated implementation.