-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: .take(..., is_copy=True); rename is_copy -> copy #27357
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
Comments
Or simply deprecate this without replacement? A |
you can try to deprecate it entirely if that works |
So the special case for "no copy" is when the result is exactly the same as the caller. Personally, I don't think we need to provide this special case (if the user cares about the performance in that corner case, they can do the check themselves) |
I opened a PR to deprecate it in 0.25.2. is_copy is supposed to be removed all-together in 1.0.0. take always returns a copy Lines 3437 to 3439 in c4489cb
pandas/pandas/core/internals/managers.py Lines 1394 to 1396 in c4489cb
pandas/pandas/core/internals/managers.py Lines 1222 to 1224 in c4489cb
Copy is true by default. |
@chrisstpierre can you open a new PR against master? (using the same branch, but not selecting the 0.25.x branch when opening the PR) |
@jorisvandenbossche just did that. But I still have Should it be 1.0.0 ? |
There's a stalled PR at #28751 that provides a nice starting point. |
take |
Reopening this issue (to have an issue with a milestone) to track the discussion in the merged PR: #30615 (comment) I think that the current deprecation is keeping the "wrong" behaviour, as in my head, the result of |
@jorisvandenbossche do you think this is a blocker for the RC? |
Ah, forgot this one, we should have discussed it yesterday on the call .. Well, I personally think the merged PR is a step in the wrong direction. It's easy to revert that, but IMO the better solution is to make |
Given the lack of input of others, shall we revert the PR for the RC? |
not sure what exactly is the issue you are bringing up here; we deprecated is_copy and you reopened exactly why? |
Right now, after the deprecation, we will keep |
Example consequence of the PR. Using
The above is on master, on 0.25.3 this did not raise a warning. |
I updated my PR that made |
this is more in-line with our other signatures. ideally would do this for 0.25
The text was updated successfully, but these errors were encountered: