Resample timeseries

Resample.rsum(time_period: str, num_col: str = 'Number', dateindex: str = None)

Resample and add a sum the main dataframe to a time period

Parameters:
  • time_period – unit + period: periods are Y, M, D, H, Min, S
  • time_period – str
  • num_col – number of the new column, defaults to “Number”
  • num_col – str, optional
  • dateindex – column name to use as date index, defaults to None
  • dateindex – str, optional
Example:

ds.rsum("1D")

Resample.rmean(time_period: str, num_col: str = 'Number', dateindex: str = None)

Resample and add a mean column the main dataframe to a time period

Parameters:
  • time_period – unit + period: periods are Y, M, D, H, Min, S
  • time_period – str
  • num_col – number of the new column, defaults to “Number”
  • num_col – str, optional
  • dateindex – column name to use as date index, defaults to None
Example:

ds.rmean("1Min")