alifestd_mark_lineage_cummax_polars
- alifestd_mark_lineage_cummax_polars(phylogeny_df: DataFrame, values: str | Expr, *, mark_as: str = 'lineage_cummax', reverse: bool = False, skipna: bool = True) DataFrame
Add column with maximum of
valuesalong each lineage.With
reverse=False(default), the result at each node is the maximum ofvaluesalong the path from the root to that node, inclusive. Withreverse=True, the result at each node is the maximum ofvaluesover the entire clade rooted at that node, inclusive.See Also
- alifestd_mark_lineage_cummax_asexual :
Pandas-based implementation.