alifestd_mark_num_leaves_polars
- alifestd_mark_num_leaves_polars(phylogeny_df: DataFrame, *, mark_as: str = 'num_leaves') DataFrame
Add column num_leaves with count of all descendant leaves, including self if a leaf.
The output column name can be changed via the
mark_asparameter.