diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index c87f21511473f..f322df1d3f0c0 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -513,7 +513,7 @@ than 2. sf = Series([1, 1, 2, 3, 3, 3]) sf.groupby(sf).filter(lambda x: x.sum() > 2) -The argument of ``filter`` must a function that, applied to the group as a +The argument of ``filter`` must be a function that, applied to the group as a whole, returns ``True`` or ``False``. Another useful operation is filtering out elements that belong to groups