- #TODO: add other filling methods like linear interpolation
- self._dataframe = self._dataframe.fillna(method='ffill')
+
+ if self._config['PREPROCESSING']['fill_method'] == 'propagate':
+ self._dataframe = self._dataframe.fillna(method='ffill')
+ elif self._config['PREPROCESSING']['fill_method'] == 'linear':
+ self._dataframe = self._dataframe.interpolate()
+ elif self._config['PREPROCESSING']['fill_method'] == 'spline':
+ self._dataframe = self._dataframe.interpolate(method='spline',
+ order=self._config['PREPROCESSING'].getint('order'))