seqme.combine

Contents

seqme.combine#

seqme.combine(dfs, *, value=None, deviation='std')[source]#

Combine multiple metric dataframes into a single metric dataframe.

Parameters:
  • dfs (list[DataFrame]) – Metric dataframes.

  • value (Optional[Literal['mean']]) –

    How to handle cells with multiple values. If None and a cell has multiple values, raises an ValueError.

    • 'mean': Mean.

  • deviation (Optional[Literal['std', 'se', 'var']]) –

    Parameter is ignored if value=None, otherwise computes a deviation for multiple values in a cell. A cells deviation is None if the cell has a single value.

    • 'std': Standard deviation.

    • 'se': Standard error.

    • 'var': Variance.

Return type:

DataFrame

Returns:

A single DataFrame combining multiple metric dataframes.

Raises:

ValueError – If dfs is empty, any DataFrame lacks ‘objective’, objectives conflict, or potentially overlapping non-null cells.