From 529059b9ee0b1f5796c22ab7b38876f8d9dc54fa Mon Sep 17 00:00:00 2001 From: Zachary Lawrence Date: Wed, 29 Apr 2020 22:07:02 -0400 Subject: [PATCH] Fix indexing typo --- doc/source/user_guide/indexing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index fb815b3a975d1..6db757e726792 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -881,7 +881,7 @@ The operators are: ``|`` for ``or``, ``&`` for ``and``, and ``~`` for ``not``. These **must** be grouped by using parentheses, since by default Python will evaluate an expression such as ``df['A'] > 2 & df['B'] < 3`` as ``df['A'] > (2 & df['B']) < 3``, while the desired evaluation order is -``(df['A > 2) & (df['B'] < 3)``. +``(df['A'] > 2) & (df['B'] < 3)``. Using a boolean vector to index a Series works exactly as in a NumPy ndarray: