-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Week.onOffset looks fishy #18510
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
@jbrockmendel : Would you mind posting a small code sample for this just for reference? |
It isn't that the Week.onOffset behavior is wrong per se, just that I don't see why it behaves this way. In every other way it behaves like a Tick offset. |
@jbrockmendel : Indeed, it's difficult for me to say that it's wrong when there is ZERO documentation on that function. 😄 (in fact, if you would like to add documentation to that method, be my guest!) That being said, I do see what you mean re: consistency. @jreback @jorisvandenbossche thoughts? |
@gfyoung mind changing the tag from Timedelta to Frequencies? |
@jbrockmendel : done |
A Week offset with weekday=None behaves very much like a Tick offset. The main difference is how they handle
onOffset
. Assumingnormalize
is False, theWeek
object will always returnweek.onOffset(other)
-->False
while theDay
object will always returnday.onOffset(other)
-->True
.Is this intentional?
The text was updated successfully, but these errors were encountered: