-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
CLN: disallow tuple in to_offset #34703
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
Conversation
jreback
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, pls add a whatsnew note (CI busted as well)
…n-to_offset-tuple
…n-to_offset-tuple
| assert len(idx) == 20 | ||
| assert idx[-1] == edate | ||
| assert idx.freq == "5D" | ||
| with pytest.raises(TypeError, match="pass as a string instead"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you move this with the other error tests?
| assert len(i1) == len(i2) | ||
| assert (i1 == i2).all() | ||
| assert i1.freq == i2.freq | ||
| with pytest.raises(TypeError, match="pass as a string instead"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
| i2 = Period("1982", freq=("Min", 1)) | ||
| assert i1 == i2 | ||
|
|
||
| with pytest.raises(TypeError, match="pass as a string instead"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
|
lgtm |
This is technically an API change, but AFAICT this isnt documented behavior anywhere.