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