-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: making copies when indexing along columns #36105
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
We don't have to (I mean it's not tied to being 1D), but yes, I suppose we will want that to return views in the long term (although there wasn't much discussion around it in the issue).
This also indicates that users will see a zillion of such warnings .. Also, what is the way for users to silence the warning? |
Is there precedent for this? Per #33597, I'm OK with just making the switch immediately.
Good question. I guess we'd have to give a way to opt in to the always-view behavior, or maybe a global flag to silence the warning. Neither is particularly pretty. |
What do you mean with precedent? (what kind of precedent are you looking for in this case?) |
Changes that would require a deprecation cycle being made without one |
Ah, we certainly have that ;) Check the sections "Backwards incompatible API changes" in all previous releases? |
makes sense, thanks |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
xref #33597 for what this might look like once the deprecation is enforced (nice perf bump)
cc @jorisvandenbossche my understanding is that we will need this deprecation for the all-1D world too. Is that correct? Any thoughts on nice ways to test this and avoid putting tm.assert_produces_warning in a zillion places across the code?