PeriodWindow.offsets_within#

PeriodWindow.offsets_within(first, last)[source]#

Positions inside the window of the dates in [first, last].

Parameters:
first, lastpd.Timestamp

Inclusive bounds to select.

Returns:
np.ndarray

Integer offsets into the padded window. Empty when the window holds no fitted dates at all, which happens for a period that falls entirely outside the fitted range.