vacanza / holidays

Generate and work with holidays in Python
https://pypi.org/project/holidays
MIT License
1.45k stars 460 forks source link

Documentation for holidays.US(years=array_of_years) ? #1846

Closed VikR0001 closed 3 months ago

VikR0001 commented 3 months ago

I was looking in the docs for how to get the dates of the holidays in a given year. I did not find it. Fortunately chatGPT knew where it was and provided this code, which works:

us_holidays = holidays.US(years=array_of_years)

Suggestion: make this more discoverable in the docs.

arkid15r commented 3 months ago

@VikR0001 thanks for the suggestion. I think it's worth making the single/multiple year example more prominent. I'll make sure this is added to our existing examples page (btw, some of them include years parameter).