Skip to content

Commit 6521a88

Browse files
committed
Fix NameError in 'Evaluation order matters'
This code in 'Indexing and selecting data' of doc wouldn't execute
1 parent ef5c016 commit 6521a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/user_guide/indexing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ This however is operating on a copy and will not work.
18371837
:okwarning:
18381838
:okexcept:
18391839
1840-
with option_context('mode.chained_assignment','warn'):
1840+
with pd.option_context('mode.chained_assignment','warn'):
18411841
dfb[dfb['a'].str.startswith('o')]['c'] = 42
18421842
18431843
A chained assignment can also crop up in setting in a mixed dtype frame.

0 commit comments

Comments
 (0)