pandas.tseries.offsets.BaseOffset.is_on_offset
pandas 3.1.1 · Date offsets and frequencies · method
Check whether a timestamp already falls on the offset's schedule.
Call syntax
BaseOffset.is_on_offset(dt)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
dt |
Required Positional or keyword |
datetime.datetime Provide the date or datetime for the boundary or offset calculation. |
Returns
bool