alifestd_mark_num_preceding_leaves_polars
- alifestd_mark_num_preceding_leaves_polars(phylogeny_df: DataFrame, *, mark_as: str = 'num_preceding_leaves') DataFrame
Add column num_preceding_leaves with count of all leaves occurring before the present node in an inorder traversal.
The output column name can be changed via the
mark_asparameter.