alifestd_mark_colless_index_polars

alifestd_mark_colless_index_polars(phylogeny_df: DataFrame, *, mark_as: str = 'colless_index') DataFrame

Add column colless_index with Colless imbalance index for each subtree.

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

Requires strictly bifurcating trees.