-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: Series.ravel #52722
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: Series.ravel #52722
Conversation
I'll have to take a closer look here, looks like we are using this internally. Will get to this over the weekend. pr itself is good! |
Thanks for your answer, Should I replace the internal usage of this function ? |
I'll have to check what we are doing before I can give you a definitiv answer here |
One place where we use pandas/pandas/core/dtypes/cast.py Lines 348 to 355 in 961f9c4
Changing In theory we should not call this method with a Series though, but with an array (or, the type annotation is wrong) |
Yes.
Agreed. |
45fb051
to
d8079e4
Compare
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 quick changes to get ci green (hopefully):
- in assert_is_valid_plot_return_object there is still a ravel on a Series object. I'd recommend calling np.asarray(obj) and call ravel on the array
- FAILED pandas/tests/copy_view/test_array.py::test_ravel_read_only[F] You have to use tm.assert_produces_warning here
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen. |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.