Skip to content
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

CoW warning mode for cases that will change behaviour #56019

Open
11 of 14 tasks
jorisvandenbossche opened this issue Nov 17, 2023 · 0 comments
Open
11 of 14 tasks

CoW warning mode for cases that will change behaviour #56019

jorisvandenbossche opened this issue Nov 17, 2023 · 0 comments
Labels
Copy / view semantics Deprecate Functionality to remove in pandas
Milestone

Comments

@jorisvandenbossche
Copy link
Member

jorisvandenbossche commented Nov 17, 2023

We are adding a new "warning" mode for the Copy-on-Write option (#48998):

pd.options.mode.copy_on_write = "warn"

which will raise a warning in every case that you are doing a setitem operation that will change behaviour when Copy-on-Write is enabled (i.e. when you are setting on an object that shares a view with another object, and with current pandas would also update that other object)

This is a tracking issue for the subtasks to complete this:

In addition, there are also a bunch of remaining # TODO(CoW-warn) to resolve.

@jorisvandenbossche jorisvandenbossche added Deprecate Functionality to remove in pandas Copy / view semantics labels Nov 17, 2023
@jorisvandenbossche jorisvandenbossche added this to the 2.2 milestone Nov 17, 2023
@lithomas1 lithomas1 modified the milestones: 2.2, 2.2.1 Jan 20, 2024
@lithomas1 lithomas1 modified the milestones: 2.2.1, 2.2.2 Feb 23, 2024
@lithomas1 lithomas1 modified the milestones: 2.2.2, 2.2.3 Apr 10, 2024
@lithomas1 lithomas1 modified the milestones: 2.2.3, 2.3 Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copy / view semantics Deprecate Functionality to remove in pandas
Projects
None yet
Development

No branches or pull requests

2 participants