Skip to content

Commit 630ef16

Browse files
DOC: Removed duplicate returns section (pandas-dev#20823)
Closes pandas-dev#20822
1 parent 21e884f commit 630ef16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/core/window.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1271,12 +1271,12 @@ def kurt(self, **kwargs):
12711271
check_minp=_require_min_periods(4), **kwargs)
12721272

12731273
_shared_docs['quantile'] = dedent("""
1274-
%(name)s quantile
1274+
%(name)s quantile.
12751275
12761276
Parameters
12771277
----------
12781278
quantile : float
1279-
0 <= quantile <= 1
1279+
Quantile to compute. 0 <= quantile <= 1.
12801280
interpolation : {'linear', 'lower', 'higher', 'midpoint', 'nearest'}
12811281
.. versionadded:: 0.23.0
12821282
@@ -1289,6 +1289,9 @@ def kurt(self, **kwargs):
12891289
* higher: `j`.
12901290
* nearest: `i` or `j` whichever is nearest.
12911291
* midpoint: (`i` + `j`) / 2.
1292+
**kwargs:
1293+
For compatibility with other %(name)s methods. Has no effect on
1294+
the result.
12921295
12931296
Returns
12941297
-------
@@ -1298,7 +1301,7 @@ def kurt(self, **kwargs):
12981301
12991302
Examples
13001303
--------
1301-
>>> s = Series([1, 2, 3, 4])
1304+
>>> s = pd.Series([1, 2, 3, 4])
13021305
>>> s.rolling(2).quantile(.4, interpolation='lower')
13031306
0 NaN
13041307
1 1.0
@@ -1319,7 +1322,6 @@ def kurt(self, **kwargs):
13191322
in Series.
13201323
pandas.DataFrame.quantile : Computes values at the given quantile over
13211324
requested axis in DataFrame.
1322-
13231325
""")
13241326

13251327
def quantile(self, quantile, interpolation='linear', **kwargs):
@@ -1656,7 +1658,6 @@ def kurt(self, **kwargs):
16561658
return super(Rolling, self).kurt(**kwargs)
16571659

16581660
@Substitution(name='rolling')
1659-
@Appender(_doc_template)
16601661
@Appender(_shared_docs['quantile'])
16611662
def quantile(self, quantile, interpolation='linear', **kwargs):
16621663
return super(Rolling, self).quantile(quantile=quantile,
@@ -1917,7 +1918,6 @@ def kurt(self, **kwargs):
19171918
return super(Expanding, self).kurt(**kwargs)
19181919

19191920
@Substitution(name='expanding')
1920-
@Appender(_doc_template)
19211921
@Appender(_shared_docs['quantile'])
19221922
def quantile(self, quantile, interpolation='linear', **kwargs):
19231923
return super(Expanding, self).quantile(quantile=quantile,

0 commit comments

Comments
 (0)