Skip to content

Commit 8c5cc9c

Browse files
authored
DOC Unsetting "copy_on_write" mode to remove EX02 errors (#51110)
DOC Correcting EX02 errors
1 parent 2cbd317 commit 8c5cc9c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
578578

579579
MSG='Partially validate docstrings (EX02)' ; echo $MSG
580580
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \
581-
pandas.DataFrame.copy \
582581
pandas.DataFrame.plot.line \
583582
pandas.DataFrame.std \
584583
pandas.DataFrame.var \
585584
pandas.Index.factorize \
586585
pandas.Period.strftime \
587-
pandas.Series.copy \
588586
pandas.Series.factorize \
589587
pandas.Series.floordiv \
590588
pandas.Series.plot.line \

pandas/errors/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ class ChainedAssignmentError(ValueError):
339339
>>> df = pd.DataFrame({'A': [1, 1, 1, 2, 2]}, columns=['A'])
340340
>>> df["A"][0:3] = 10 # doctest: +SKIP
341341
... # ChainedAssignmentError: ...
342+
>>> pd.options.mode.copy_on_write = False
342343
"""
343344

344345

0 commit comments

Comments
 (0)