BUG: Unable to resample period range with dates above 2262-04-11 #44326
Labels
Bug
Needs Triage
Issue that has not been reviewed by a pandas team member
Period
Period data type
Resample
resample method
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 master branch of pandas.
Reproducible Example
Issue Description
We are working with datasets that extend out past the maximum timestamp date of 2262-04-11, so we generally use period ranges rather than datetime ranges. However, starting with release 1.1.0, the resample functionality no longer works with period ranges that extend past 2262-04-11. The error that occurs in these later releases is pandas._libs.tslibs.np_datetime.OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 2300-01-01 22:59:59.
Expected Behavior
In releases prior to 1.1.0, period ranges that extend past 2262-04-11 are resampled successfully without an out of bounds datetime error.
Installed Versions
1.1.1
The text was updated successfully, but these errors were encountered: