alifestd_prefix_roots
- alifestd_prefix_roots(phylogeny_df: DataFrame, *, allow_id_reassign: bool = False, origin_time: Real | None = None, mutate: bool = False) DataFrame
Add new roots to the phylogeny, prefixing existing roots.
An origin time may be specified, in which case only roots with origin times past the specified time will be prefixed. If no origin time is specified, all roots will be prefixed.
Input dataframe is not mutated by this operation unless mutate set True. If mutate set True, operation does not occur in place; still use return value to get transformed phylogeny dataframe.