Interpolate Preprocessing

This module allows easy pre-processing of data.


flood_forecast.preprocessing.interpolate_preprocess.fix_timezones(df: pandas.core.frame.DataFrame) pandas.core.frame.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: pandas.core.frame.DataFrame) pandas.core.frame.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: pandas.core.frame.DataFrame, relevant_columns: List) pandas.core.frame.DataFrame[source]

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

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

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