Skip to content

Commit 0e1294e

Browse files
committed
Update docstring
1 parent f8c2cab commit 0e1294e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/errors/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ class ChainedAssignmentError(Warning):
668668
"""
669669
Warning raised when trying to set using chained assignment.
670670
671-
When the ``mode.copy_on_write`` option is enabled, chained assignment can
671+
With Copy-on-Write now always enabled, chained assignment can
672672
never work. In such a situation, we are always setting into a temporary
673673
object that is the result of an indexing operation (getitem), which under
674674
Copy-on-Write always behaves as a copy. Thus, assigning through a chain
@@ -677,18 +677,11 @@ class ChainedAssignmentError(Warning):
677677
For more information on Copy-on-Write,
678678
see :ref:`the user guide<copy_on_write>`.
679679
680-
See Also
681-
--------
682-
options.mode.copy_on_write : Global setting for enabling or disabling
683-
Copy-on-Write behavior.
684-
685680
Examples
686681
--------
687-
>>> pd.options.mode.copy_on_write = True
688682
>>> df = pd.DataFrame({"A": [1, 1, 1, 2, 2]}, columns=["A"])
689683
>>> df["A"][0:3] = 10 # doctest: +SKIP
690684
... # ChainedAssignmentError: ...
691-
>>> pd.options.mode.copy_on_write = False
692685
"""
693686

694687

0 commit comments

Comments
 (0)