-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
DOC: Fix Order of parameters in docstrings #23611
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 (pandas-dev#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 (pandas-dev#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). |
* upstream/master: BUG: Casting tz-aware DatetimeIndex to object-dtype ndarray/Index (pandas-dev#23524) BUG: Delegate more of Excel parsing to CSV (pandas-dev#23544) API: DataFrame.__getitem__ returns Series for sparse column (pandas-dev#23561) CLN: use float64_t consistently instead of double, double_t (pandas-dev#23583) DOC: Fix Order of parameters in docstrings (pandas-dev#23611) TST: Unskip some Categorical Tests (pandas-dev#23613) TST: Fix integer ops comparison test (pandas-dev#23619) DOC: Fixes to docstring to add validation to CI (pandas-dev#23560) DOC: Remove incorrect periods at the end of parameter types (pandas-dev#23600) MAINT: tm.assert_raises_regex --> pytest.raises (pandas-dev#23592) DOC: Updating Series.resample and DataFrame.resample docstrings (pandas-dev#23197)
…fixed * upstream/master: DOC: Enhancing pivot / reshape docs (pandas-dev#21038) TST: Fix xfailing DataFrame arithmetic tests by transposing (pandas-dev#23620) BUILD: Simplifying contributor dependencies (pandas-dev#23522) BUG/REF: TimedeltaIndex.__new__ (pandas-dev#23539) BUG: Casting tz-aware DatetimeIndex to object-dtype ndarray/Index (pandas-dev#23524) BUG: Delegate more of Excel parsing to CSV (pandas-dev#23544) API: DataFrame.__getitem__ returns Series for sparse column (pandas-dev#23561) CLN: use float64_t consistently instead of double, double_t (pandas-dev#23583) DOC: Fix Order of parameters in docstrings (pandas-dev#23611) TST: Unskip some Categorical Tests (pandas-dev#23613) TST: Fix integer ops comparison test (pandas-dev#23619)
git diff upstream/master -u -- "*.py" | flake8 --diff
Fix the following: