-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: date_range(freq='Y') is missing a date #56134
Comments
Saving this write-up for now, hoping to revisit with a fix soon The issue arises from
For specific code locations: pandas/pandas/core/arrays/datetimes.py Line 2756 in a869a73
However the following is pandas/pandas/core/arrays/datetimes.py Line 2761 in a869a73
|
A potential fix: only ensure the |
take |
Hello, should this issue be closed by #56831 already? |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
>> DatetimeIndex(['2021-12-31 00:00:01'], dtype='datetime64[ns]', freq='A-DEC')
The text was updated successfully, but these errors were encountered: