Skip to content

Commit

Permalink
DOC: fix PR02 errors in docstrings - pandas.core.window.rolling.Rolli…
Browse files Browse the repository at this point in the history
…ng.quantile, pandas.core.window.expanding.Expanding.quantile (pandas-dev#57211)
  • Loading branch information
jordan-d-murphy authored and pmhatre1 committed May 7, 2024
1 parent c656aa9 commit 166fab7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.core.groupby.DataFrameGroupBy.hist\
pandas.core.groupby.DataFrameGroupBy.plot\
pandas.core.groupby.DataFrameGroupBy.corrwith\
pandas.core.groupby.SeriesGroupBy.plot\
pandas.core.window.rolling.Rolling.quantile\
pandas.core.window.expanding.Expanding.quantile # There should be no backslash in the final line, please keep this comment in the last ignored function
pandas.core.groupby.SeriesGroupBy.plot # There should be no backslash in the final line, please keep this comment in the last ignored function
RET=$(($RET + $?)) ; echo $MSG "DONE"

fi
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/window/expanding.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,11 +664,11 @@ def kurt(self, numeric_only: bool = False):
create_section_header("Parameters"),
dedent(
"""
quantile : float
q : float
Quantile to compute. 0 <= quantile <= 1.
.. deprecated:: 2.1.0
This will be renamed to 'q' in a future version.
This was renamed from 'quantile' to 'q' in version 2.1.0.
interpolation : {{'linear', 'lower', 'higher', 'midpoint', 'nearest'}}
This optional parameter specifies the interpolation method to use,
when the desired quantile lies between two data points `i` and `j`:
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2502,11 +2502,11 @@ def kurt(self, numeric_only: bool = False):
create_section_header("Parameters"),
dedent(
"""
quantile : float
q : float
Quantile to compute. 0 <= quantile <= 1.
.. deprecated:: 2.1.0
This will be renamed to 'q' in a future version.
This was renamed from 'quantile' to 'q' in version 2.1.0.
interpolation : {{'linear', 'lower', 'higher', 'midpoint', 'nearest'}}
This optional parameter specifies the interpolation method to use,
when the desired quantile lies between two data points `i` and `j`:
Expand Down

0 comments on commit 166fab7

Please sign in to comment.