From 02b3d12cc3e2e14ad9b61bffba361dac745df7a4 Mon Sep 17 00:00:00 2001 From: clham Date: Mon, 26 May 2014 16:09:02 -0400 Subject: [PATCH] DOC: GH3850, add .isin to 10min.rst --- doc/source/10min.rst | 11 +++++++++++ doc/source/v0.14.0.txt | 1 + 2 files changed, 12 insertions(+) diff --git a/doc/source/10min.rst b/doc/source/10min.rst index 4bca2f4a9d4c8..cbd2f60ddbcd3 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -287,6 +287,17 @@ A ``where`` operation for getting. df[df > 0] +Using the :func:`~Series.isin` method for filtering: + +.. ipython:: python + + df['E']=['one', 'one','two','three','four','three'] + df + good_numbers=['two','four'] + df[df['E'].isin(good_numbers)] + + df.drop('E', inplace=True, axis=1) + Setting ~~~~~~~ diff --git a/doc/source/v0.14.0.txt b/doc/source/v0.14.0.txt index ba67e2cd4d4c8..c4e3fb672aef2 100644 --- a/doc/source/v0.14.0.txt +++ b/doc/source/v0.14.0.txt @@ -200,6 +200,7 @@ API changes NotImplementedError: operator '/' not implemented for bool dtypes + .. _whatsnew_0140.display: Display Changes