pandas.tseries.holiday.Holiday.dates
pandas 3.1.1 · Date offsets and frequencies · method
Calculate the observed dates for a holiday rule over a requested range.
Call syntax
Holiday.dates(start_date, end_date, return_name=False)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
start_date |
Required Positional or keyword |
starting date, datetime-like |
end_date |
Required Positional or keyword |
ending date, datetime-like |
return_name |
Optional Positional or keyword Default False |
bool |
Returns
Series or DatetimeIndex