@@ -136,7 +136,7 @@ def _gotitem(self, key, ndim, subset=None):
136
136
137
137
Parameters
138
138
----------
139
- key : string / list of selections
139
+ key : str / list of selections
140
140
ndim : 1,2
141
141
requested ndim of result
142
142
subset : object, default None
@@ -464,15 +464,16 @@ class Window(_Window):
464
464
(otherwise result is NA). For a window that is specified by an offset,
465
465
`min_periods` will default to 1. Otherwise, `min_periods` will default
466
466
to the size of the window.
467
- center : boolean , default False
467
+ center : bool , default False
468
468
Set the labels at the center of the window.
469
- win_type : string , default None
469
+ win_type : str , default None
470
470
Provide a window type. If ``None``, all points are evenly weighted.
471
471
See the notes below for further information.
472
- on : string , optional
472
+ on : str , optional
473
473
For a DataFrame, column on which to calculate
474
474
the rolling window, rather than the index
475
- closed : string, default None
475
+ axis : int or str, default 0
476
+ closed : str, default None
476
477
Make the interval closed on the 'right', 'left', 'both' or
477
478
'neither' endpoints.
478
479
For offset-based windows, it defaults to 'right'.
@@ -481,8 +482,6 @@ class Window(_Window):
481
482
482
483
.. versionadded:: 0.20.0
483
484
484
- axis : int or string, default 0
485
-
486
485
Returns
487
486
-------
488
487
a Window or Rolling sub-classed for the particular operation
@@ -661,7 +660,7 @@ def _apply_window(self, mean=True, **kwargs):
661
660
662
661
Parameters
663
662
----------
664
- mean : boolean , default True
663
+ mean : bool , default True
665
664
If True computes weighted mean, else weighted sum
666
665
667
666
Returns
@@ -819,11 +818,11 @@ def _apply(self, func, name=None, window=None, center=None,
819
818
820
819
Parameters
821
820
----------
822
- func : string /callable to apply
823
- name : string , optional
821
+ func : str /callable to apply
822
+ name : str , optional
824
823
name of this function
825
824
window : int/array, default to _get_window()
826
- center : boolean , default to self.center
825
+ center : bool , default to self.center
827
826
check_minp : function, default to _use_window
828
827
829
828
Returns
@@ -1816,9 +1815,9 @@ class Expanding(_Rolling_and_Expanding):
1816
1815
min_periods : int, default 1
1817
1816
Minimum number of observations in window required to have a value
1818
1817
(otherwise result is NA).
1819
- center : boolean , default False
1818
+ center : bool , default False
1820
1819
Set the labels at the center of the window.
1821
- axis : int or string , default 0
1820
+ axis : int or str , default 0
1822
1821
1823
1822
Returns
1824
1823
-------
@@ -2062,7 +2061,7 @@ def _constructor(self):
2062
2061
2063
2062
Parameters
2064
2063
----------
2065
- bias : boolean , default False
2064
+ bias : bool , default False
2066
2065
Use a standard estimation bias correction
2067
2066
"""
2068
2067
@@ -2079,7 +2078,7 @@ def _constructor(self):
2079
2078
will be a MultiIndex DataFrame in the case of DataFrame inputs.
2080
2079
In the case of missing elements, only complete pairwise observations will
2081
2080
be used.
2082
- bias : boolean , default False
2081
+ bias : bool , default False
2083
2082
Use a standard estimation bias correction
2084
2083
"""
2085
2084
@@ -2110,10 +2109,10 @@ class EWM(_Rolling):
2110
2109
min_periods : int, default 0
2111
2110
Minimum number of observations in window required to have a value
2112
2111
(otherwise result is NA).
2113
- adjust : boolean , default True
2112
+ adjust : bool , default True
2114
2113
Divide by decaying adjustment factor in beginning periods to account
2115
2114
for imbalance in relative weightings (viewing EWMA as a moving average)
2116
- ignore_na : boolean , default False
2115
+ ignore_na : bool , default False
2117
2116
Ignore missing values when calculating weights;
2118
2117
specify True to reproduce pre-0.15.0 behavior
2119
2118
@@ -2242,7 +2241,7 @@ def _apply(self, func, **kwargs):
2242
2241
2243
2242
Parameters
2244
2243
----------
2245
- func : string /callable to apply
2244
+ func : str /callable to apply
2246
2245
2247
2246
Returns
2248
2247
-------
0 commit comments