Skip to content

REF: require PeriodArray in PeriodIndex._simple_new #31128

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

Merged
merged 2 commits into from
Jan 20, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

@gfyoung gfyoung added Period Period data type Refactor Internal refactoring of code labels Jan 19, 2020
tm.assert_index_equal(result, idx)

@pytest.mark.parametrize("floats", [[1.1, 2.1], np.array([1.1, 2.1])])
def test_constructor_floats(self, floats):
msg = r"PeriodIndex\._simple_new does not accept floats"
with pytest.raises(TypeError, match=msg):
with pytest.raises(AssertionError, match="<class "):
Copy link
Member

Choose a reason for hiding this comment

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

msg on the line above is now unused.

@jreback jreback added this to the 1.1 milestone Jan 20, 2020
@jreback jreback merged commit 6a2f95b into pandas-dev:master Jan 20, 2020
@jreback
Copy link
Contributor

jreback commented Jan 20, 2020

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the simplenew-period branch January 20, 2020 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Period Period data type Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants