alifestd_mark_csr_offsets_polars

alifestd_mark_csr_offsets_polars(phylogeny_df: DataFrame, *, mark_as: str = 'csr_offsets') DataFrame

Add column csr_offsets, the CSR offset where each node’s children begin in the corresponding csr_children array.

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