alifestd_mark_right_child_asexual
- alifestd_mark_right_child_asexual(phylogeny_df: DataFrame, mutate: bool = False, *, mark_as: str = 'right_child_id') DataFrame
Add column right_child, containing for each node its largest-id child.
The output column name can be changed via the
mark_asparameter.Leaf nodes will be marked with their own id.
Dataframe reindexing (e.g., df.index) may be applied.
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.