-
-
Notifications
You must be signed in to change notification settings - Fork 155
type isin, remove redundant Iterable | Series
#1507
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
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.
Thank you @MarcoGorelli (for your patience)!
Edit: sorry I was about to approve, but found a place to work on when I took a second look.
cmp0xff
left a comment
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.
Two more comments, after looking into the MultiIndex case more carefully.
cmp0xff
left a comment
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.
Thank you @MarcoGorelli ! And sorry for the back and forth. It just happened that I came up with new ideas how to challenge the existing typing and tests.
|
really appreciate your careful reviews, thank you! |
Seriesis alreadyIterable, soIterable | Serieswas redundant hereSeries.isindoesn't acceptdictin the same way thatDataFrame.isindoes:in the dataframe case, you can pass a per-column mapping
in the series one, it accidentally works but just because it's an iterable (i.e., only the keys are checked anyway)
Closes #xxxx (Replace xxxx with the Github issue number)
Tests added (Please use
assert_type()to assert the type of any return value)If I used AI to develop this pull request, I prompted it to follow
AGENTS.md.