Skip to content

Commit 2801bdc

Browse files
Merge pull request #7239 from clham/gh3850
DOC: GH3850, add .isin to 10min.rst
2 parents 1fa5dd4 + 02b3d12 commit 2801bdc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

doc/source/10min.rst

+11
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,17 @@ A ``where`` operation for getting.
287287
288288
df[df > 0]
289289
290+
Using the :func:`~Series.isin` method for filtering:
291+
292+
.. ipython:: python
293+
294+
df['E']=['one', 'one','two','three','four','three']
295+
df
296+
good_numbers=['two','four']
297+
df[df['E'].isin(good_numbers)]
298+
299+
df.drop('E', inplace=True, axis=1)
300+
290301
Setting
291302
~~~~~~~
292303

doc/source/v0.14.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ API changes
200200
NotImplementedError: operator '/' not implemented for bool dtypes
201201

202202

203+
203204
.. _whatsnew_0140.display:
204205

205206
Display Changes

0 commit comments

Comments
 (0)