Skip to content
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

CLN: disallow tuple in to_offset #34703

Merged
merged 7 commits into from
Jun 15, 2020

Conversation

jbrockmendel
Copy link
Member

This is technically an API change, but AFAICT this isnt documented behavior anywhere.

Copy link
Contributor

@jreback jreback left a 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)

@jreback jreback added the Frequency DateOffsets label Jun 10, 2020
@jreback jreback added this to the 1.1 milestone Jun 10, 2020
assert len(idx) == 20
assert idx[-1] == edate
assert idx.freq == "5D"
with pytest.raises(TypeError, match="pass as a string instead"):
Copy link
Contributor

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"):
Copy link
Contributor

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"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@jreback
Copy link
Contributor

jreback commented Jun 14, 2020

lgtm

@jreback jreback merged commit 5f20674 into pandas-dev:master Jun 15, 2020
@jbrockmendel jbrockmendel deleted the cln-to_offset-tuple branch June 15, 2020 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frequency DateOffsets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants