alifestd_mark_num_leaves_sibling_polars

alifestd_mark_num_leaves_sibling_polars(phylogeny_df: DataFrame, *, mark_as: str = 'num_leaves_sibling') DataFrame

Mark the number of leaves descendant from each node’s siblings.

The output column name can be changed via the mark_as parameter.

Nodes with no siblings (e.g., root nodes) will have value 0 marked.