@@ -1271,12 +1271,12 @@ def kurt(self, **kwargs):
1271
1271
check_minp = _require_min_periods (4 ), ** kwargs )
1272
1272
1273
1273
_shared_docs ['quantile' ] = dedent ("""
1274
- %(name)s quantile
1274
+ %(name)s quantile.
1275
1275
1276
1276
Parameters
1277
1277
----------
1278
1278
quantile : float
1279
- 0 <= quantile <= 1
1279
+ Quantile to compute. 0 <= quantile <= 1.
1280
1280
interpolation : {'linear', 'lower', 'higher', 'midpoint', 'nearest'}
1281
1281
.. versionadded:: 0.23.0
1282
1282
@@ -1289,6 +1289,9 @@ def kurt(self, **kwargs):
1289
1289
* higher: `j`.
1290
1290
* nearest: `i` or `j` whichever is nearest.
1291
1291
* midpoint: (`i` + `j`) / 2.
1292
+ **kwargs:
1293
+ For compatibility with other %(name)s methods. Has no effect on
1294
+ the result.
1292
1295
1293
1296
Returns
1294
1297
-------
@@ -1298,7 +1301,7 @@ def kurt(self, **kwargs):
1298
1301
1299
1302
Examples
1300
1303
--------
1301
- >>> s = Series([1, 2, 3, 4])
1304
+ >>> s = pd. Series([1, 2, 3, 4])
1302
1305
>>> s.rolling(2).quantile(.4, interpolation='lower')
1303
1306
0 NaN
1304
1307
1 1.0
@@ -1319,7 +1322,6 @@ def kurt(self, **kwargs):
1319
1322
in Series.
1320
1323
pandas.DataFrame.quantile : Computes values at the given quantile over
1321
1324
requested axis in DataFrame.
1322
-
1323
1325
""" )
1324
1326
1325
1327
def quantile (self , quantile , interpolation = 'linear' , ** kwargs ):
@@ -1656,7 +1658,6 @@ def kurt(self, **kwargs):
1656
1658
return super (Rolling , self ).kurt (** kwargs )
1657
1659
1658
1660
@Substitution (name = 'rolling' )
1659
- @Appender (_doc_template )
1660
1661
@Appender (_shared_docs ['quantile' ])
1661
1662
def quantile (self , quantile , interpolation = 'linear' , ** kwargs ):
1662
1663
return super (Rolling , self ).quantile (quantile = quantile ,
@@ -1917,7 +1918,6 @@ def kurt(self, **kwargs):
1917
1918
return super (Expanding , self ).kurt (** kwargs )
1918
1919
1919
1920
@Substitution (name = 'expanding' )
1920
- @Appender (_doc_template )
1921
1921
@Appender (_shared_docs ['quantile' ])
1922
1922
def quantile (self , quantile , interpolation = 'linear' , ** kwargs ):
1923
1923
return super (Expanding , self ).quantile (quantile = quantile ,
0 commit comments