alifestd_mark_clade_duration_ratio_sister_polars

alifestd_mark_clade_duration_ratio_sister_polars(phylogeny_df: DataFrame, *, mark_as: str = 'clade_duration_ratio_sister') DataFrame

Add column clade_duration_ratio_sister, containing the ratio of each clade’s duration to that of its sister.

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

Tree must be strictly bifurcating.