restrict
Ts
TsGroup
Tsd
TsdFrame
IntervalSet
time_support
value_from
count
bin_average
threshold
smooth
import pynapple as nap ts = nap.Ts(t=[1,2,3,4,5]) restriction = nap.IntervalSet(start=[1.3, 3.9], end=[3.5, 4.2]) restricted = ts.restrict(restriction) restricted
Time (s) 2.0 3.0 4.0 shape: 3