Skip to content

CoW warning mode for cases that will change behaviour #56019

Open
@jorisvandenbossche

Description

@jorisvandenbossche

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions