@@ -136,7 +136,7 @@ def _gotitem(self, key, ndim, subset=None):
136136
137137 Parameters
138138 ----------
139- key : string / list of selections
139+ key : str / list of selections
140140 ndim : 1,2
141141 requested ndim of result
142142 subset : object, default None
@@ -464,15 +464,16 @@ class Window(_Window):
464464 (otherwise result is NA). For a window that is specified by an offset,
465465 `min_periods` will default to 1. Otherwise, `min_periods` will default
466466 to the size of the window.
467- center : boolean , default False
467+ center : bool , default False
468468 Set the labels at the center of the window.
469- win_type : string , default None
469+ win_type : str , default None
470470 Provide a window type. If ``None``, all points are evenly weighted.
471471 See the notes below for further information.
472- on : string , optional
472+ on : str , optional
473473 For a DataFrame, column on which to calculate
474474 the rolling window, rather than the index
475- closed : string, default None
475+ axis : int or str, default 0
476+ closed : str, default None
476477 Make the interval closed on the 'right', 'left', 'both' or
477478 'neither' endpoints.
478479 For offset-based windows, it defaults to 'right'.
@@ -481,8 +482,6 @@ class Window(_Window):
481482
482483 .. versionadded:: 0.20.0
483484
484- axis : int or string, default 0
485-
486485 Returns
487486 -------
488487 a Window or Rolling sub-classed for the particular operation
@@ -661,7 +660,7 @@ def _apply_window(self, mean=True, **kwargs):
661660
662661 Parameters
663662 ----------
664- mean : boolean , default True
663+ mean : bool , default True
665664 If True computes weighted mean, else weighted sum
666665
667666 Returns
@@ -819,11 +818,11 @@ def _apply(self, func, name=None, window=None, center=None,
819818
820819 Parameters
821820 ----------
822- func : string /callable to apply
823- name : string , optional
821+ func : str /callable to apply
822+ name : str , optional
824823 name of this function
825824 window : int/array, default to _get_window()
826- center : boolean , default to self.center
825+ center : bool , default to self.center
827826 check_minp : function, default to _use_window
828827
829828 Returns
@@ -1816,9 +1815,9 @@ class Expanding(_Rolling_and_Expanding):
18161815 min_periods : int, default 1
18171816 Minimum number of observations in window required to have a value
18181817 (otherwise result is NA).
1819- center : boolean , default False
1818+ center : bool , default False
18201819 Set the labels at the center of the window.
1821- axis : int or string , default 0
1820+ axis : int or str , default 0
18221821
18231822 Returns
18241823 -------
@@ -2062,7 +2061,7 @@ def _constructor(self):
20622061
20632062Parameters
20642063----------
2065- bias : boolean , default False
2064+ bias : bool , default False
20662065 Use a standard estimation bias correction
20672066"""
20682067
@@ -2079,7 +2078,7 @@ def _constructor(self):
20792078 will be a MultiIndex DataFrame in the case of DataFrame inputs.
20802079 In the case of missing elements, only complete pairwise observations will
20812080 be used.
2082- bias : boolean , default False
2081+ bias : bool , default False
20832082 Use a standard estimation bias correction
20842083"""
20852084
@@ -2110,10 +2109,10 @@ class EWM(_Rolling):
21102109 min_periods : int, default 0
21112110 Minimum number of observations in window required to have a value
21122111 (otherwise result is NA).
2113- adjust : boolean , default True
2112+ adjust : bool , default True
21142113 Divide by decaying adjustment factor in beginning periods to account
21152114 for imbalance in relative weightings (viewing EWMA as a moving average)
2116- ignore_na : boolean , default False
2115+ ignore_na : bool , default False
21172116 Ignore missing values when calculating weights;
21182117 specify True to reproduce pre-0.15.0 behavior
21192118
@@ -2242,7 +2241,7 @@ def _apply(self, func, **kwargs):
22422241
22432242 Parameters
22442243 ----------
2245- func : string /callable to apply
2244+ func : str /callable to apply
22462245
22472246 Returns
22482247 -------
0 commit comments