alifestd_mark_first_child_id_polars
- alifestd_mark_first_child_id_polars(phylogeny_df: DataFrame, *, mark_as: str = 'first_child_id') DataFrame
Add column first_child_id, the smallest-id child of each node.
The output column name can be changed via the
mark_asparameter.If a node has no children (is a leaf), marks own id.