marmot.plottingmodules.plotutils.timeseries_modifiers.adjust_for_leapday#
- adjust_for_leapday(self, df: pandas.core.frame.DataFrame) pandas.core.frame.DataFrame [source]#
Shifts dataframe ahead by one day.
Use if a non-leap year time series is modeled with a leap year time index.
Modeled year must be included in the scenario parent directory name. :param df: Dataframe to process. :type df: pd.DataFrame
- Returns
Same dataframe, with time index shifted.
- Return type
pd.DataFrame