Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NameError in 'Evaluation order matters' #55198

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/source/user_guide/indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@ This however is operating on a copy and will not work.
:okwarning:
:okexcept:

with option_context('mode.chained_assignment','warn'):
with pd.option_context('mode.chained_assignment','warn'):
dfb[dfb['a'].str.startswith('o')]['c'] = 42

A chained assignment can also crop up in setting in a mixed dtype frame.
Expand Down Expand Up @@ -1879,7 +1879,7 @@ Last, the subsequent example will **not** work at all, and so should be avoided:
:okwarning:
:okexcept:

with option_context('mode.chained_assignment','raise'):
with pd.option_context('mode.chained_assignment','raise'):
dfd.loc[0]['a'] = 1111

.. warning::
Expand Down