pandas.tseries.offsets.Day.is_on_offset
- Day.is_on_offset(dt)
Return boolean whether a timestamp intersects with this frequency.
- Parameters:
- dt : datetime.datetime
Timestamp to check intersections with frequency.
Examples
>>>
Return boolean whether a timestamp intersects with this frequency.
Timestamp to check intersections with frequency.
>>>
>>> ts = pd.Timestamp(2022, 8, 6)
>>> ts.day_name()
'Saturday'
>>> freq = pd.offsets.BusinessDay(1)
>>> freq.is_on_offset(ts)
False