Skip to content

DOC: Clarify where to the additional arguments for some win_types #34615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 18, 2020
13 changes: 8 additions & 5 deletions pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,16 +922,19 @@ class Window(_Window):
* ``blackmanharris``
* ``nuttall``
* ``barthann``
* ``kaiser`` (needs beta)
* ``gaussian`` (needs std)
* ``general_gaussian`` (needs power, width)
* ``slepian`` (needs width)
* ``exponential`` (needs tau), center is set to None.
* ``kaiser`` (needs parameter: beta)
* ``gaussian`` (needs parameter: std)
* ``general_gaussian`` (needs parameters: power, width)
* ``slepian`` (needs parameter: width)
* ``exponential`` (needs parameter: tau), center is set to None.

If ``win_type=None`` all points are evenly weighted. To learn more about
different window types see `scipy.signal window functions
<https://docs.scipy.org/doc/scipy/reference/signal.html#window-functions>`__.

Certain window types require additional parameters to be passed. Please see
the third example below on how to add the additional parameters.

Examples
--------
>>> df = pd.DataFrame({'B': [0, 1, 2, np.nan, 4]})
Expand Down