Skip to content

Conversation

@rhshadrach
Copy link
Member

@rhshadrach rhshadrach added Deprecate Functionality to remove in pandas Copy / view semantics labels Nov 30, 2025
@jorisvandenbossche
Copy link
Member

Now that CoW is always enabled, the enabling/disabling can simply be removed from the ChainedAssignmentError docstring example:

Examples
--------
>>> pd.options.mode.copy_on_write = True
>>> df = pd.DataFrame({"A": [1, 1, 1, 2, 2]}, columns=["A"])
>>> df["A"][0:3] = 10 # doctest: +SKIP
... # ChainedAssignmentError: ...
>>> pd.options.mode.copy_on_write = False

That should fix the doctest failure

@jorisvandenbossche jorisvandenbossche changed the title DEPR: Copy-on-Write option DEPR: unused Copy-on-Write option Dec 1, 2025
@jorisvandenbossche jorisvandenbossche merged commit 1895c38 into pandas-dev:main Dec 1, 2025
41 checks passed
@jorisvandenbossche
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

BUG: SettingWithCopyWarning is not shown with copy-on-write disabled

3 participants