openstef.preprocessing package#
Submodules#
openstef.preprocessing.preprocessing module#
- openstef.preprocessing.preprocessing.replace_repeated_values_with_nan(df, max_length, column_name)#
Replace sequentially repeated values with NaN.
- Parameters:
df (
DataFrame
) – Data with potential repeating values.max_length (
int
) – Maximum length of sequence. Above are set to 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.