@@ -342,21 +342,23 @@ def aggregate(self, arg, *args, **kwargs):
342
342
343
343
Parameters
344
344
----------
345
- how : string, default None (DEPRECATED)
346
- Method for down- or re-sampling""" )
345
+ how : string, default None
346
+ .. deprecated:: 0.18.0
347
+ Method for down- or re-sampling""" )
347
348
348
349
_shared_docs ['mean' ] = dedent ("""
349
350
%(name)s mean
350
351
351
352
Parameters
352
353
----------
353
- how : string, default None (DEPRECATED)
354
- Method for down- or re-sampling""" )
354
+ how : string, default None
355
+ .. deprecated:: 0.18.0
356
+ Method for down- or re-sampling""" )
355
357
356
358
357
359
class Window (_Window ):
358
360
"""
359
- Provides rolling window calculcations .
361
+ Provides rolling window calculations .
360
362
361
363
.. versionadded:: 0.18.0
362
364
@@ -374,9 +376,10 @@ class Window(_Window):
374
376
Minimum number of observations in window required to have a value
375
377
(otherwise result is NA). For a window that is specified by an offset,
376
378
this will default to 1.
377
- freq : string or DateOffset object, optional (default None) (DEPRECATED)
378
- Frequency to conform the data to before computing the statistic.
379
- Specified as a frequency string or DateOffset object.
379
+ freq : string or DateOffset object, optional (default None)
380
+ .. deprecated:: 0.18.0
381
+ Frequency to conform the data to before computing the statistic.
382
+ Specified as a frequency string or DateOffset object.
380
383
center : boolean, default False
381
384
Set the labels at the center of the window.
382
385
win_type : string, default None
@@ -571,8 +574,9 @@ def _apply_window(self, mean=True, how=None, **kwargs):
571
574
----------
572
575
mean : boolean, default True
573
576
If True computes weighted mean, else weighted sum
574
- how : string, default to None (DEPRECATED)
575
- how to resample
577
+ how : string, default to None
578
+ .. deprecated:: 0.18.0
579
+ how to resample
576
580
577
581
Returns
578
582
-------
@@ -736,8 +740,9 @@ def _apply(self, func, name=None, window=None, center=None,
736
740
window : int/array, default to _get_window()
737
741
center : boolean, default to self.center
738
742
check_minp : function, default to _use_window
739
- how : string, default to None (DEPRECATED)
740
- how to resample
743
+ how : string, default to None
744
+ .. deprecated:: 0.18.0
745
+ how to resample
741
746
742
747
Returns
743
748
-------
@@ -864,8 +869,9 @@ def sum(self, *args, **kwargs):
864
869
865
870
Parameters
866
871
----------
867
- how : string, default 'max' (DEPRECATED)
868
- Method for down- or re-sampling""" )
872
+ how : string, default 'max'
873
+ .. deprecated:: 0.18.0
874
+ Method for down- or re-sampling""" )
869
875
870
876
def max (self , how = None , * args , ** kwargs ):
871
877
nv .validate_window_func ('max' , args , kwargs )
@@ -878,8 +884,9 @@ def max(self, how=None, *args, **kwargs):
878
884
879
885
Parameters
880
886
----------
881
- how : string, default 'min' (DEPRECATED)
882
- Method for down- or re-sampling""" )
887
+ how : string, default 'min'
888
+ .. deprecated:: 0.18.0
889
+ Method for down- or re-sampling""" )
883
890
884
891
def min (self , how = None , * args , ** kwargs ):
885
892
nv .validate_window_func ('min' , args , kwargs )
@@ -896,8 +903,9 @@ def mean(self, *args, **kwargs):
896
903
897
904
Parameters
898
905
----------
899
- how : string, default 'median' (DEPRECATED)
900
- Method for down- or re-sampling""" )
906
+ how : string, default 'median'
907
+ .. deprecated:: 0.18.0
908
+ Method for down- or re-sampling""" )
901
909
902
910
def median (self , how = None , ** kwargs ):
903
911
if self .freq is not None and how is None :
@@ -1329,9 +1337,10 @@ class Expanding(_Rolling_and_Expanding):
1329
1337
min_periods : int, default None
1330
1338
Minimum number of observations in window required to have a value
1331
1339
(otherwise result is NA).
1332
- freq : string or DateOffset object, optional (default None) (DEPRECATED)
1333
- Frequency to conform the data to before computing the statistic.
1334
- Specified as a frequency string or DateOffset object.
1340
+ freq : string or DateOffset object, optional (default None)
1341
+ .. deprecated:: 0.18.0
1342
+ Frequency to conform the data to before computing the statistic.
1343
+ Specified as a frequency string or DateOffset object.
1335
1344
center : boolean, default False
1336
1345
Set the labels at the center of the window.
1337
1346
axis : int or string, default 0
@@ -1593,8 +1602,9 @@ class EWM(_Rolling):
1593
1602
min_periods : int, default 0
1594
1603
Minimum number of observations in window required to have a value
1595
1604
(otherwise result is NA).
1596
- freq : None or string alias / date offset object, default=None (DEPRECATED)
1597
- Frequency to conform to before computing statistic
1605
+ freq : None or string alias / date offset object, default=None
1606
+ .. deprecated:: 0.18.0
1607
+ Frequency to conform to before computing statistic
1598
1608
adjust : boolean, default True
1599
1609
Divide by decaying adjustment factor in beginning periods to account
1600
1610
for imbalance in relative weightings (viewing EWMA as a moving average)
@@ -1727,8 +1737,9 @@ def _apply(self, func, how=None, **kwargs):
1727
1737
Parameters
1728
1738
----------
1729
1739
func : string/callable to apply
1730
- how : string, default to None (DEPRECATED)
1731
- how to resample
1740
+ how : string, default to None
1741
+ .. deprecated:: 0.18.0
1742
+ how to resample
1732
1743
1733
1744
Returns
1734
1745
-------
0 commit comments