alifestd_mark_is_left_child_polars

alifestd_mark_is_left_child_polars(phylogeny_df: DataFrame, *, mark_as: str = 'is_left_child') DataFrame

Add column is_left_child, containing for each node whether it is the smaller-id child.

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

Root nodes will be marked False.