-
-
Notifications
You must be signed in to change notification settings - Fork 154
GH1409 Improve Series.to_numpy typing #1476
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
|
Seems like I should be able to restrict some of the types. |
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.
One comment to fix the warning on Windows. Others are just ideas.
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.
- We need to use
np_1darray_xxxin the stubs. I'll deal with the tests later in #1478. s8remains to be renamed.
Otherwise looking good!
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 @loicdiridollou !
to_numpydoes not reflectS1inpd.Series[S1]#1409assert_type()to assert the type of any return valueShould address the most general case for each type, happy to improve with the dtype parameter, from experience this is not used a lot but let me know, good to restrict some of those types.