Skip to content

Commit 70f47ee

Browse files
DOC: fix PR02 errors in docstrings - pandas.core.window.rolling.Rolling.quantile, pandas.core.window.expanding.Expanding.quantile (#57211)
1 parent f20c5c9 commit 70f47ee

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

ci/code_checks.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
176176
pandas.core.groupby.DataFrameGroupBy.hist\
177177
pandas.core.groupby.DataFrameGroupBy.plot\
178178
pandas.core.groupby.DataFrameGroupBy.corrwith\
179-
pandas.core.groupby.SeriesGroupBy.plot\
180-
pandas.core.window.rolling.Rolling.quantile\
181-
pandas.core.window.expanding.Expanding.quantile # There should be no backslash in the final line, please keep this comment in the last ignored function
179+
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, please keep this comment in the last ignored function
182180
RET=$(($RET + $?)) ; echo $MSG "DONE"
183181

184182
fi

pandas/core/window/expanding.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -664,11 +664,11 @@ def kurt(self, numeric_only: bool = False):
664664
create_section_header("Parameters"),
665665
dedent(
666666
"""
667-
quantile : float
667+
q : float
668668
Quantile to compute. 0 <= quantile <= 1.
669669
670670
.. deprecated:: 2.1.0
671-
This will be renamed to 'q' in a future version.
671+
This was renamed from 'quantile' to 'q' in version 2.1.0.
672672
interpolation : {{'linear', 'lower', 'higher', 'midpoint', 'nearest'}}
673673
This optional parameter specifies the interpolation method to use,
674674
when the desired quantile lies between two data points `i` and `j`:

pandas/core/window/rolling.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2502,11 +2502,11 @@ def kurt(self, numeric_only: bool = False):
25022502
create_section_header("Parameters"),
25032503
dedent(
25042504
"""
2505-
quantile : float
2505+
q : float
25062506
Quantile to compute. 0 <= quantile <= 1.
25072507
25082508
.. deprecated:: 2.1.0
2509-
This will be renamed to 'q' in a future version.
2509+
This was renamed from 'quantile' to 'q' in version 2.1.0.
25102510
interpolation : {{'linear', 'lower', 'higher', 'midpoint', 'nearest'}}
25112511
This optional parameter specifies the interpolation method to use,
25122512
when the desired quantile lies between two data points `i` and `j`:

0 commit comments

Comments
 (0)