smps.AlphasenseOPCN2.slice#

AlphasenseOPCN2.slice(start=None, end=None, inplace=False)#

Slice the data between two datetimes.

Parameters
startstr

The timestamp (as a string) to begin the slice.

endstr

The timestamp (as a string) to end the slice.

inplacebool, default=False

If True, replace the data with the specified slice of the data, otherwise return a copy of the sliced data.

Returns
datapd.DataFrame or None

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

Examples

>>> obj.slice(start="2023-01-01", end="2023-02-15")