-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
GH1037 Remove na_sentinel from factorize methods #1038
GH1037 Remove na_sentinel from factorize methods #1038
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.
To close the issue, you will have to also edit pandas-stubs/core/base.pyi
as well. Basically anywhere that def factorize()
appears, and then reconcile it with the docs.
…1037_na_sentinel_factorize
All should align with the docs now, let me know if anything extra is needed. |
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.
can you also update core/base.pyi
that has a the declaration for Index.factorize()
?
Aahh I see what you mean, sorry I got confused, added a test on the side, the type hinting seems a bit broad on it but that is for another day. |
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 @loicdiridollou
assert_type()
to assert the type of any return value