Skip to content

Commit deb3676

Browse files
zach powerswesm
zach powers
authored andcommitted
added an example of boolean selection using OR
1 parent cf11a3b commit deb3676

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/source/indexing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ Using a boolean vector to index a Series works exactly as in a numpy ndarray:
190190
191191
s[s > 0]
192192
s[(s < 0) & (s > -0.5)]
193+
s[(s < -1) | (s > 1 )]
193194
194195
You may select rows from a DataFrame using a boolean vector the same length as
195196
the DataFrame's index (for example, something derived from one of the columns

0 commit comments

Comments
 (0)