-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
Conversation
pandas/tests/indexes/test_multi.py
Outdated
index=pd.MultiIndex.from_tuples([(x, x) for x in r])) | ||
|
||
with pytest.raises(AttributeError, | ||
message="'Series' object has no attribute 'foo'"): |
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.
Let's use tm.assert_raises_regex
instead.
doc/source/whatsnew/v0.22.0.txt
Outdated
@@ -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`) |
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.
In what context? Add something short to the end of that sentence to clarify.
126e4ff
to
457e84b
Compare
doc/source/whatsnew/v0.22.0.txt
Outdated
@@ -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`) |
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.
I think this is ok for 0.21.1, can you move. ping on when pushed.
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.
comments
457e84b
to
7c0fac8
Compare
@jreback moved to v0.21.1 |
thanks! |
…ndas-dev#18165) (pandas-dev#18229) (cherry picked from commit eb39b44)
git diff upstream/master -u -- "*.py" | flake8 --diff