flasc.utilities.energy_ratio_utilities.add_power_test

Contents

flasc.utilities.energy_ratio_utilities.add_power_test#

flasc.utilities.energy_ratio_utilities.add_power_test(df_: DataFrame, test_cols: List[str]) DataFrame[source]#

Add the pow_test column to a dataframe, given which columns to average over.

Parameters:
  • df (pl.DataFrame) -- The Polars DataFrame containing the column to bin.

  • test_cols (list(str)) -- The name of the columns to average across.

  • df_ (DataFrame)

Returns:

A new Polars DataFrame with an additional pow_test column

Return type:

pl.DataFrame