Skip to content

Commit 69974ef

Browse files
jbochiNo-Stream
authored andcommitted
Fix 17788: Fix documentation that mentioned the deprecated how parameter (pandas-dev#17801)
1 parent 4aff333 commit 69974ef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/source/timeseries.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -1456,8 +1456,9 @@ The ``resample`` function is very flexible and allows you to specify many
14561456
different parameters to control the frequency conversion and resampling
14571457
operation.
14581458

1459-
The ``how`` parameter can be a function name or numpy array function that takes
1460-
an array and produces aggregated values:
1459+
Any function available via :ref:`dispatching <groupby.dispatch>` is available as
1460+
a method of the returned object, including ``sum``, ``mean``, ``std``, ``sem``,
1461+
``max``, ``min``, ``median``, ``first``, ``last``, ``ohlc``:
14611462

14621463
.. ipython:: python
14631464
@@ -1467,9 +1468,6 @@ an array and produces aggregated values:
14671468
14681469
ts.resample('5Min').max()
14691470
1470-
Any function available via :ref:`dispatching <groupby.dispatch>` can be given to
1471-
the ``how`` parameter by name, including ``sum``, ``mean``, ``std``, ``sem``,
1472-
``max``, ``min``, ``median``, ``first``, ``last``, ``ohlc``.
14731471
14741472
For downsampling, ``closed`` can be set to 'left' or 'right' to specify which
14751473
end of the interval is closed:

0 commit comments

Comments
 (0)