-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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: Updated docstrings related to DateTimeIndex. GH22459 #22504
DOC: Updated docstrings related to DateTimeIndex. GH22459 #22504
Conversation
Codecov Report
@@ Coverage Diff @@
## master #22504 +/- ##
==========================================
+ Coverage 92.22% 92.23% +<.01%
==========================================
Files 161 161
Lines 51187 51197 +10
==========================================
+ Hits 47209 47220 +11
+ Misses 3978 3977 -1
Continue to review full report at Codecov.
|
>>> pd.bdate_range(start='1/1/2018', end='1/08/2018') | ||
DatetimeIndex(['2018-01-01', '2018-01-02', '2018-01-03', '2018-01-04', | ||
'2018-01-05', '2018-01-08'], | ||
dtype='datetime64[ns]', freq='B') |
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.
Hmmm...that output formatting of the lines is a little weird there. Should they be more aligned?
the 'left', 'right', or both sides (None) | ||
the 'left', 'right', or both sides (None). | ||
**kwargs | ||
For compatibility. Has no effect on the result. |
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.
Not sure we need to document **kwargs
?
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.
Yes, we've been documenting them, even when we need to say that they don't have any effect. Explicit is better than implicit. :)
Hello @eldritchideen! Thanks for updating 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.
lgtm
@eldritchideen : Can you rebase onto |
@eldritchideen Can you please merge master into your PR? This will rerun the CI checks, and when everything is green we can merge this. |
Rebased, merging on green. |
thanks @eldritchideen |
git diff upstream/master -u -- "*.py" | flake8 --diff
Updated
pandas.date_range
andpandas.bdate_range
docstrings to resolve errors raised fromscripts/validate_docstrings.py
from #22459. Also added an example topandas.bdate_range
.