alifestd_try_add_ancestor_list_col

alifestd_try_add_ancestor_list_col(phylogeny_df: DataFrame_T, root_ancestor_token: str = 'none', mutate: bool = False) DataFrame_T
Add an ancestor_list column to the input DataFrame if the column does

not already exist.

Input dataframe is not mutated by this operation unless mutate set True. If mutate set True, operation does not occur in place; still use return value to get transformed phylogeny dataframe.

alifestd_make_ancestor_list_col

This function also accepts a polars.DataFrame, for which there is a separate delegated implementation.