Skip to content

Commit 78d4e5d

Browse files
author
tp
committed
remove pd.running_*, pd.expanding_* and pd.ewm* and related code
1 parent 8347ff8 commit 78d4e5d

File tree

8 files changed

+131
-1368
lines changed

8 files changed

+131
-1368
lines changed

doc/source/computation.rst

+2-9
Original file line numberDiff line numberDiff line change
@@ -209,19 +209,12 @@ Window Functions
209209

210210
.. currentmodule:: pandas.core.window
211211

212-
.. warning::
213-
214-
Prior to version 0.18.0, ``pd.rolling_*``, ``pd.expanding_*``, and ``pd.ewm*`` were module level
215-
functions and are now deprecated. These are replaced by using the :class:`~pandas.core.window.Rolling`, :class:`~pandas.core.window.Expanding` and :class:`~pandas.core.window.EWM`. objects and a corresponding method call.
216-
217-
The deprecation warning will show the new syntax, see an example :ref:`here <whatsnew_0180.window_deprecations>`.
218-
219-
For working with data, a number of windows functions are provided for
212+
For working with data, a number of window functions are provided for
220213
computing common *window* or *rolling* statistics. Among these are count, sum,
221214
mean, median, correlation, variance, covariance, standard deviation, skewness,
222215
and kurtosis.
223216

224-
Starting in version 0.18.1, the ``rolling()`` and ``expanding()``
217+
The ``rolling()`` and ``expanding()``
225218
functions can be used directly from DataFrameGroupBy objects,
226219
see the :ref:`groupby docs <groupby.transform.window_resample>`.
227220

doc/source/whatsnew/v0.23.0.txt

+2
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ Removal of prior version deprecations/changes
318318
- The ``labels`` attribute of the ``Categorical`` class has been removed in favor of :attribute:`Categorical.codes` (:issue:`7768`)
319319
- The ``flavor`` parameter have been removed from func:`to_sql` method (:issue:`13611`)
320320
- The modules `pandas.tools.hashing` and `pandas.util.hashing` have been removed (:issue:`16223`)
321+
- The top-level functions ``pd.rolling_*``, ``pd.expanding_*`` and ``pd.ewm*`` have been removed (Deprecated since v0.18).
322+
Instead, use the DataFrame/Series methods :attr:`~DataFrame.rolling`, :attr:`~DataFrame.expanding` and :attr:`~DataFrame.ewm` (:issue:`18723`)
321323

322324
.. _whatsnew_0230.performance:
323325

pandas/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
from pandas.core.api import *
4343
from pandas.core.sparse.api import *
44-
from pandas.stats.api import *
4544
from pandas.tseries.api import *
4645
from pandas.core.computation.api import *
4746
from pandas.core.reshape.api import *

pandas/stats/__init__.py

Whitespace-only changes.

pandas/stats/api.py

-7
This file was deleted.

0 commit comments

Comments
 (0)