alifestd_mark_left_child_polars

alifestd_mark_left_child_polars(phylogeny_df: DataFrame, *, mark_as: str = 'left_child_id') DataFrame

Add column left_child_id, containing for each node its smallest-id child.

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

Leaf nodes will be marked with their own id.