flasc.utilities.energy_ratio_utilities.filter_all_nulls

flasc.utilities.energy_ratio_utilities.filter_all_nulls#

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

Filter dataframe for ALL nulls.

Filter data by requiring ALL values of ref, test, ws, and wd to be valid numbers.

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