Interpolate Preprocessing

This module allows easy pre-processing of data.


flood_forecast.preprocessing.interpolate_preprocess.fix_timezones(df: DataFrame) DataFrame[source]

Basic function to fix initil data bug related to NaN values in non-eastern-time zones due to UTC conversion.

flood_forecast.preprocessing.interpolate_preprocess.interpolate_missing_values(df: DataFrame) DataFrame[source]

Function to fill missing values with nearest value. Should be run only after splitting on the NaN chunks.

flood_forecast.preprocessing.interpolate_preprocess.forward_back_generic(df: DataFrame, relevant_columns: List) DataFrame[source]

Function to fill missing values with nearest value (forward first)

flood_forecast.preprocessing.interpolate_preprocess.back_forward_generic(df: DataFrame, relevant_columns: List[str]) DataFrame[source]

Function to fill missing values with nearest values (backward first)