openstef.preprocessing package¶
Submodules¶
openstef.preprocessing.preprocessing module¶
- openstef.preprocessing.preprocessing.replace_repeated_values_with_nan(df, threshold, column_name)¶
Replace sequentially repeated values with NaN.
- Parameters:
df (
DataFrame
) – Data with potential repeating values.threshold (
int
) – The minimum number of squentially repeated values needed to trigger the replacement with NaN.column_name (
str
) – Column name of input dataframe with repeating values.
- Return type:
DataFrame
- Returns:
DataFrame, similar to df, with the desired values set to NaN.