-
-
Notifications
You must be signed in to change notification settings - Fork 143
Add types for pandas.DataFrame.map #801
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.
Thanks for the PR. Just some straightforward changes to meet our current practices.
I may not be able to approve/merge until Tuesday, 10/24
precommit is failing because you didn't format with See https://github.com/pandas-dev/pandas-stubs/blob/main/docs/setup.md to set up your environment. |
Also CI is failing because pyright 1.1.332 is picking up stuff we need to investigate. Can you put |
pyright seems to now enforce more checks for stub files
I will try to look into that. |
6374fed
to
911dc2e
Compare
Made some changes:
|
- Removed stub and test for applymap - Downgraded pyright - Ran the precommit (it just removes some whitespace)
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.
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.
Thanks @andrewpmk
Added types for pandas.DataFrame.map (renamed from applymap in pandas 2.1.0 and later https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.map.html, applymap has been deprecated)
.map
method ofpd.DataFrame
andmypy
#774 and Missing stub for df.map() in pandas-stubs/core/frame.pyi #800