-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
DEPR: indexing Series with single-entry list #31333
Conversation
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.
This seems reasonable. Will users see this warning in addition to the warnings in #31299 (comment)?
Will need a whatsnew note.
# GH#31299 | ||
warnings.warn( | ||
"Indexing with a single-item list containing a " | ||
"slice is deprecated and will raise in a future " |
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.
Do we know what it will raise? Or will it depend on the value?
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.
Best guess is TypeError, depends on where we let it fall through
No, this will change the list to tuple before calling
updated |
thanks, can you add to the deprecation issue (do this for anything we are deprecating). |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Could use a better warning message, suggestions welcome.