Skip to content

Commit

Permalink
DOC: Removed duplicate returns section (pandas-dev#20823)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger authored Apr 26, 2018
1 parent 21e884f commit 630ef16
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pandas/core/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,12 +1271,12 @@ def kurt(self, **kwargs):
check_minp=_require_min_periods(4), **kwargs)

_shared_docs['quantile'] = dedent("""
%(name)s quantile
%(name)s quantile.
Parameters
----------
quantile : float
0 <= quantile <= 1
Quantile to compute. 0 <= quantile <= 1.
interpolation : {'linear', 'lower', 'higher', 'midpoint', 'nearest'}
.. versionadded:: 0.23.0
Expand All @@ -1289,6 +1289,9 @@ def kurt(self, **kwargs):
* higher: `j`.
* nearest: `i` or `j` whichever is nearest.
* midpoint: (`i` + `j`) / 2.
**kwargs:
For compatibility with other %(name)s methods. Has no effect on
the result.
Returns
-------
Expand All @@ -1298,7 +1301,7 @@ def kurt(self, **kwargs):
Examples
--------
>>> s = Series([1, 2, 3, 4])
>>> s = pd.Series([1, 2, 3, 4])
>>> s.rolling(2).quantile(.4, interpolation='lower')
0 NaN
1 1.0
Expand All @@ -1319,7 +1322,6 @@ def kurt(self, **kwargs):
in Series.
pandas.DataFrame.quantile : Computes values at the given quantile over
requested axis in DataFrame.
""")

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

@Substitution(name='rolling')
@Appender(_doc_template)
@Appender(_shared_docs['quantile'])
def quantile(self, quantile, interpolation='linear', **kwargs):
return super(Rolling, self).quantile(quantile=quantile,
Expand Down Expand Up @@ -1917,7 +1918,6 @@ def kurt(self, **kwargs):
return super(Expanding, self).kurt(**kwargs)

@Substitution(name='expanding')
@Appender(_doc_template)
@Appender(_shared_docs['quantile'])
def quantile(self, quantile, interpolation='linear', **kwargs):
return super(Expanding, self).quantile(quantile=quantile,
Expand Down

0 comments on commit 630ef16

Please sign in to comment.