smps.ModulairPM.resample#

ModulairPM.resample(rs, inplace=False)#

Resample the data to a new time base.

Parameters
rsstr

The resample period using normal pandas convention. Examples include ‘1h’, ‘1d’, ‘15min’, etc.

inplacebool, default=False

If True, modify the data inplace, otherwise return.

Returns
datapd.DataFrame or None

If inplace=False, return the dataframe with the resampled data.

Examples

Resample to 1h and modify in place

>>> obj.resample('1h', inplace=True)