Skip to content

Commit 947732b

Browse files
zacharylawrencerhshadrach
authored andcommitted
DOC: Fix Syntax Typo in Indexing (pandas-dev#33887)
1 parent 6faaebd commit 947732b

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
@@ -881,7 +881,7 @@ The operators are: ``|`` for ``or``, ``&`` for ``and``, and ``~`` for ``not``.
881881
These **must** be grouped by using parentheses, since by default Python will
882882
evaluate an expression such as ``df['A'] > 2 & df['B'] < 3`` as
883883
``df['A'] > (2 & df['B']) < 3``, while the desired evaluation order is
884-
``(df['A > 2) & (df['B'] < 3)``.
884+
``(df['A'] > 2) & (df['B'] < 3)``.
885885

886886
Using a boolean vector to index a Series works exactly as in a NumPy ndarray:
887887

0 commit comments

Comments
 (0)