flasc.utilities.energy_ratio_utilities.filter_all_nulls#
- flasc.utilities.energy_ratio_utilities.filter_all_nulls(df_, ref_cols, test_cols, ws_cols, wd_cols)[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