ramp.Plot.resample¶
- Plot.resample(freq, rule, conversion=1, inplace=False)¶
returns a resampled version of the data
- Parameters:
freq (str) – pd.DataFrame.resample frequency, for example: “1h” for hourly resampling, “1w” for weekly data. Refer to https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.resample.html
rule (str) – resampling rule. acceptable values are ‘sum’, ‘mean’, ‘nearest’, …
conversion (int, optional) – if resampling needs a conversion, can be done through this argument. The value of the data will be divided by ‘conversion’, by default 1
inplace (bool, optional) – if True, implements the changes inplace otherwise, returns the resampled data as a new object, by default False
- Returns:
Plot object if inplace=False otherwise returns None
- Return type:
Plot, None