alifestd_try_add_ancestor_list_col_polars
- alifestd_try_add_ancestor_list_col_polars(phylogeny_df: DataFrame, root_ancestor_token: str = 'none', mutate: bool = False) DataFrame
Add an ancestor_list column to the input DataFrame if the column does not already exist.
Notes
Even allowed by mutate flag, no side effects occur on input dataframe under Polars implementation. Flag is included for API compatibility with Pandas implementation.
See Also
- alifestd_try_add_ancestor_list_col :
Pandas-based implementation.