alifestd_pipe_unary_ops

alifestd_pipe_unary_ops(phylogeny_df: ~pandas.core.frame.DataFrame, *unary_ops: ~typing.Callable[[~pandas.core.frame.DataFrame], ~pandas.core.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_dfpandas.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

pandas.DataFrame

The result of piping phylogeny_df through each operation in order.

See Also

alifestd_pipe_unary_ops_polars :

Polars-based implementation.

This function also accepts a polars.DataFrame, for which there is a separate delegated implementation.