-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: default value for pd.DateOffset() is 24 hours instead of 1 calendar day #36512
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
What would you expect to get instead? |
I want to get Timestamp('2011-03-28 00:00:00+0300', tz='Europe/Helsinki') when use ts + pd.DateOffset(). |
Hmmm so I'm not sure whether this is the expected behavior from For your specific use case would
|
Oh, I know how to convert it to this form.
Thus maybe it's more clear to point out the default value is 24 hours not a calendar day here. |
Ok, makes sense! Are you interested in opening a PR to add this clarification to the doc? |
glad to |
Fantastic. Here's the contributions guide with the instructions |
The default action for pd.DateOffset seems to be equal to pd.DateOffset(hours=24) instead of pd.DateOffset(days=1).
But the user guide says DateOffset object defaults to 1 calendar day.
The text was updated successfully, but these errors were encountered: