Skip to content

Commit b6bb3e6

Browse files
thiphan94pmhatre1
authored andcommitted
Fix docstring (pandas-dev#57167)
* fix PR02 error in clip function * fix PR02 error in argsort function
1 parent e730427 commit b6bb3e6

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

ci/code_checks.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9393
pandas.TimedeltaIndex.ceil\
9494
pandas.PeriodIndex\
9595
pandas.PeriodIndex.strftime\
96-
pandas.Series.clip\
9796
pandas.Series.rename_axis\
9897
pandas.Series.dt.to_period\
9998
pandas.Series.dt.tz_localize\
@@ -115,7 +114,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
115114
pandas.Series.plot.barh\
116115
pandas.Series.plot.line\
117116
pandas.Series.plot.pie\
118-
pandas.DataFrame.clip\
119117
pandas.DataFrame.plot\
120118
pandas.DataFrame.plot.bar\
121119
pandas.DataFrame.plot.barh\
@@ -183,8 +181,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
183181
pandas.core.groupby.DataFrameGroupBy.plot\
184182
pandas.core.groupby.SeriesGroupBy.plot\
185183
pandas.core.window.rolling.Rolling.quantile\
186-
pandas.core.window.expanding.Expanding.quantile\
187-
pandas.api.extensions.ExtensionArray.argsort # There should be no backslash in the final line, please keep this comment in the last ignored function
184+
pandas.core.window.expanding.Expanding.quantile # There should be no backslash in the final line, please keep this comment in the last ignored function
188185
RET=$(($RET + $?)) ; echo $MSG "DONE"
189186

190187
fi

pandas/core/arrays/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def argsort(
818818
na_position : {'first', 'last'}, default 'last'
819819
If ``'first'``, put ``NaN`` values at the beginning.
820820
If ``'last'``, put ``NaN`` values at the end.
821-
*args, **kwargs:
821+
**kwargs
822822
Passed through to :func:`numpy.argsort`.
823823
824824
Returns

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8962,7 +8962,7 @@ def clip(
89628962
For `Series` this parameter is unused and defaults to `None`.
89638963
inplace : bool, default False
89648964
Whether to perform the operation in place on the data.
8965-
*args, **kwargs
8965+
**kwargs
89668966
Additional keywords have no effect but might be accepted
89678967
for compatibility with numpy.
89688968

0 commit comments

Comments
 (0)