alifestd_pipe_unary_ops_polars

alifestd_pipe_unary_ops_polars(phylogeny_df: ~polars.dataframe.frame.DataFrame, *unary_ops: ~typing.Callable[[~polars.dataframe.frame.DataFrame], ~polars.dataframe.frame.DataFrame], progress_wrap: ~typing.Callable = <function <lambda>>) DataFrame

Pipe a phylogeny DataFrame through a sequence of unary operations.

Each operation in unary_ops is applied in order to the DataFrame.

Parameters

phylogeny_dfpolars.DataFrame

The phylogeny as a dataframe in alife standard format.

*unary_opscallable

Zero or more callables, each accepting and returning a DataFrame.

progress_wrapcallable, optional

Optional wrapper for unary_ops to provide progress feedback (e.g. tqdm).

Returns

polars.DataFrame

The result of piping phylogeny_df through each operation in order.

See Also

alifestd_pipe_unary_ops :

Pandas-based implementation.