-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Remove raise if missing only controlling the error message #41371
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
…ean_raise_missing
f"The following labels were missing: {not_found}. " | ||
"See https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike" # noqa:E501 | ||
) | ||
not_found = list(set(key) - set(ax)) |
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.
we may wan to limit the display here to max_seq_items (e.g. if you have a huge list), but could investigate if this is actually an issue. it can be potentially if it takes time to render and for example we are NOT raising this to the user (that's not true in this case, speaking more generally here).
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.
Yeah this is a good point. Will try to investigate, if we can do this when we supress the error.
thanks @phofl |
Did this cause a performance regression? |
This tick really looks similar to the one a few weeks earlier. But I will have a look. Practically this should only impact cases where a KeyError is raised |
@TomAugspurger if you wouldn't mind creating an issue about this regression |
Yeah, looks like a false alarm. The latest benchmarks are back to normal. |
oh ok great! |
The removed tests don't make sense anymore, since all is printed now but without a fixed order