pynapple.TsdFrame.get#
- TsdFrame.get(start, end=None, time_units='s')#
Slice the time series from start to end such that all the timestamps satisfy start<=t<=end. If end is None, only the timepoint closest to start is returned.
By default, the time support doesn’t change. If you want to change the time support, use the restrict function.
Note
When
endis provided, this returns a view into the original time series: the result shares the same underlying timestamp and data arrays (no copy). Modifying the returned object in place will therefore modify the original. Call.copy()if you need an independent object, or userestrict(which always copies).