Skip to content

BUG: MultiIndex not raising AttributeError with a million records #18229

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 1 commit into from
Nov 12, 2017

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Nov 11, 2017

index=pd.MultiIndex.from_tuples([(x, x) for x in r]))

with pytest.raises(AttributeError,
message="'Series' object has no attribute 'foo'"):
Copy link
Member

Choose a reason for hiding this comment

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

Let's use tm.assert_raises_regex instead.

@@ -100,7 +100,7 @@ Indexing

- Bug in :func:`Series.truncate` which raises ``TypeError`` with a monotonic ``PeriodIndex`` (:issue:`17717`)
- Bug in :func:`DataFrame.groupby` where key as tuple in a ``MultiIndex`` were interpreted as a list of keys (:issue:`17979`)
-
- Bug where a ``MultiIndex`` with more than a million records was not raising ``AttributeError`` as expected (:issue:`18165`)
Copy link
Member

Choose a reason for hiding this comment

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

In what context? Add something short to the end of that sentence to clarify.

@gfyoung gfyoung changed the title BUG: MultiIndex not raising AttributeError with a million records (#1… BUG: MultiIndex not raising AttributeError with a million records Nov 11, 2017
@gfyoung gfyoung added MultiIndex Error Reporting Incorrect or improved errors from pandas labels Nov 11, 2017
@@ -100,7 +100,7 @@ Indexing

- Bug in :func:`Series.truncate` which raises ``TypeError`` with a monotonic ``PeriodIndex`` (:issue:`17717`)
- Bug in :func:`DataFrame.groupby` where key as tuple in a ``MultiIndex`` were interpreted as a list of keys (:issue:`17979`)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is ok for 0.21.1, can you move. ping on when pushed.

@jreback jreback added this to the 0.21.1 milestone Nov 12, 2017
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.

comments

@WillAyd
Copy link
Member Author

WillAyd commented Nov 12, 2017

@jreback moved to v0.21.1

@jreback jreback merged commit eb39b44 into pandas-dev:master Nov 12, 2017
@jreback
Copy link
Contributor

jreback commented Nov 12, 2017

thanks!

@WillAyd WillAyd deleted the mill-multi-fix branch November 12, 2017 16:15
TomAugspurger pushed a commit to TomAugspurger/pandas that referenced this pull request Dec 8, 2017
TomAugspurger pushed a commit that referenced this pull request Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas MultiIndex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strange behaviour with MultiIndex and more than one million records
4 participants