flasc.data_processing.dataframe_manipulations.set_ws_by_turbines#
- flasc.data_processing.dataframe_manipulations.set_ws_by_turbines(df: DataFrame | FlascDataFrame, turbine_numbers: List[int]) DataFrame | FlascDataFrame [source]#
Add ws column by list of turbines.
Add a column called 'ws' in your dataframe with value equal to the mean wind speed measurements of all the turbines in turbine_numbers.
- Parameters:
df (pd.DataFrame | FlascDataFrame) -- Dataframe with measurements. This dataframe
wd_%03d (typically consists of)
ws_%03d
ti_%03d
pow_%03d
and
measurements. (potentially additional)
turbine_numbers ([list, array]) -- List of turbine numbers that
average. (should be used to calculate the column)
- Returns:
Dataframe which equals the inserted dataframe plus the additional column called 'ws'.
- Return type:
pd.DataFrame | FlascDataFrame