Skip to content

Commit f15f45c

Browse files
committed
Remove deprecated rolling methods
xref pandas-dev/pandas#18723
1 parent cc2526a commit f15f45c

File tree

4 files changed

+2
-30
lines changed

4 files changed

+2
-30
lines changed

dask/dataframe/__init__.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
demo, to_hdf, to_records, to_bag)
1010
from .optimize import optimize
1111
from .multi import merge, concat
12-
from .rolling import (rolling_count, rolling_sum, rolling_mean, rolling_median,
13-
rolling_min, rolling_max, rolling_std, rolling_var,
14-
rolling_skew, rolling_kurt, rolling_quantile, rolling_apply,
15-
rolling_window)
12+
from . import rolling
1613
from ..base import compute
1714
from .reshape import get_dummies, pivot_table, melt
1815
try:

dask/dataframe/tests/test_rolling.py

-13
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,6 @@ def mad(x):
9393
return np.fabs(x - x.mean()).mean()
9494

9595

96-
def test_rolling_functions_series():
97-
ts = pd.Series(np.random.randn(25).cumsum())
98-
dts = dd.from_pandas(ts, 3)
99-
rolling_functions_tests(ts, dts)
100-
101-
102-
def test_rolling_functions_dataframe():
103-
df = pd.DataFrame({'a': np.random.randn(25).cumsum(),
104-
'b': np.random.randint(100, size=(25,))})
105-
ddf = dd.from_pandas(df, 3)
106-
rolling_functions_tests(df, ddf)
107-
108-
10996
rolling_method_args_check_less_precise = [
11097
('count', (), False),
11198
('sum', (), False),

docs/source/changelog.rst

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ DataFrame
2828
- ``DataFrame.read_sql()`` (:pr:`2928`) to an empty database tables returns an empty dask dataframe `Apostolos Vlachopoulos`_
2929
- Fixed ``dd.concat`` losing the index dtype when the data contained a categorical (:issue:`2932`) `Tom Augspurger`_
3030
- ``DataFrame.merge()`` (:pr:`2960`) now supports merging on a combination of columns and the index `Jon Mease`_
31+
- Removed the deprecated ``dd.rolling*`` methods, in preperation for their removal in the next pandas release (:issus:``) `Tom Augspurger`_
3132
3233
Core
3334
++++

docs/source/dataframe-api.rst

-13
Original file line numberDiff line numberDiff line change
@@ -243,19 +243,6 @@ Rolling Operations
243243

244244
.. autosummary::
245245
rolling.map_overlap
246-
rolling.rolling_apply
247-
rolling.rolling_count
248-
rolling.rolling_kurt
249-
rolling.rolling_max
250-
rolling.rolling_mean
251-
rolling.rolling_median
252-
rolling.rolling_min
253-
rolling.rolling_quantile
254-
rolling.rolling_skew
255-
rolling.rolling_std
256-
rolling.rolling_sum
257-
rolling.rolling_var
258-
rolling.rolling_window
259246

260247
Create DataFrames
261248
~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)