-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
QuarterEnd Offset seems to not work with datetimes on the last day #13644
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
Comments
If I understood properly, this isn't specific for quarter. It's because we're adding the offset.
maybe you expect
For the second issue, you can specify
|
cc @chris-b1 |
You want an offset with
|
ok closing this, but if anyone thinks docs are not clear a pr would be great. |
Hello,
I have a column of datetimes which I'm trying to group by moving them to the last day of the calendar quarter. However, I think when the datetime is on the last day of the quarter, It doesn't work.
Code Sample, a copy-pastable example if possible
Quarter Begin appears to be even more screwed up. It is moving the date to March 1, which isn't the beginning of a quarter.
Expected Output
I expect this to be
2016-06-30
.output of
pd.show_versions()
I think a suitable workaround for QuarterEnd is to convert the datetime to a date, then subtract a day, then move to QuartrEnd. (Untested).
The text was updated successfully, but these errors were encountered: