flasc.utilities.energy_ratio_utilities.filter_any_nulls

flasc.utilities.energy_ratio_utilities.filter_any_nulls#

flasc.utilities.energy_ratio_utilities.filter_any_nulls(df_: DataFrame, ref_cols: List[str], test_cols: List[str], ws_cols: List[str], wd_cols: List[str])[source]#

Filter dataframe for ANY nulls.

Filter data by requiring ANY of ref, ANY of test, ANY of ws, and ANY of wd to be a valid number.

Parameters:
  • df (pl.DataFrame) -- Polars dataframe possibly containing Null values

  • ref_cols (list[str]) -- A list of columns to use as the reference turbines

  • test_cols (list[str]) -- A list of columns to use as the test turbines

  • wd_cols (list[str]) -- A list of columns to derive the wind directions from

  • ws_cols (list[str]) -- A list of columns to derive the wind speeds from

  • df_ (DataFrame)

Returns:

A dataframe containing the energy ratio between the two sets of turbines.

Return type:

pl.DataFrame