-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
DOC: Fix Order of parameters in docstrings #23611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hello @thoo! Thanks for submitting the PR.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally you cannot change the order of the kwargs themselves
just fix the doc strings. if it makes more sense and it has a lot of args then we need a note in the whatsnew
681d919
to
ff8ebf4
Compare
Codecov Report
@@ Coverage Diff @@
## master #23611 +/- ##
=======================================
Coverage 92.25% 92.25%
=======================================
Files 161 161
Lines 51277 51277
=======================================
Hits 47305 47305
Misses 3972 3972
Continue to review full report at Codecov.
|
ff8ebf4
to
731d27e
Compare
* upstream/master: TST: Use intp as expected dtype in IntervalIndex indexing tests (#23609)
@thoo I think in this case it makes more sense to change the order of the parameters, as you did initially. But let's do that in a separate PR, just leave the other changes here. |
I created #23612 to address the changes in |
* upstream/master: ENH: Support for partition_cols in to_parquet (#23321)
pandas/core/window.py
Outdated
@@ -472,6 +472,7 @@ class Window(_Window): | |||
on : string, optional | |||
For a DataFrame, column on which to calculate | |||
the rolling window, rather than the index | |||
axis : int or string, default 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when specifying parameter types: string --> str (a couple other instances of this elsewhere too)
pandas/tseries/offsets.py
Outdated
normalize : bool, default False | ||
Normalize start/end dates to midnight before generating date range | ||
weekmask : str, Default 'Mon Tue Wed Thu Fri' | ||
weekmask of valid business days, passed to ``numpy.busdaycalendar`` | ||
holidays : list | ||
list/array of dates to exclude from the set of valid business days, | ||
passed to ``numpy.busdaycalendar`` | ||
calendar : pd.HolidayCalendar or np.busdaycalendar | ||
calendar : pd.HolidayCalendar or np. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like np.busdaycalendar
accidentally got truncated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks @thoo for the work on this
thanks @thoo nice work! @datapythonista is this check now automatic in code_checks? (if not, pls create an issue for this, if you don't already). |
git diff upstream/master -u -- "*.py" | flake8 --diff
Fix the following: