diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 1c4c3f93726a9..47d53c82b86f3 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -680,8 +680,7 @@ match the shape of the input array. data_range = lambda x: x.max() - x.min() ts.groupby(key).transform(data_range) -Alternatively the built-in methods can be could be used to produce the same -outputs +Alternatively, the built-in methods could be used to produce the same outputs. .. ipython:: python