You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
You want an offset with n=0 - that has the semantics of not rolling the date forward if on an anchor (e.g., a QuarterEnd) and rolling forward otherwise. n=1, the default always rolls forward. See docs here
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: