-
Notifications
You must be signed in to change notification settings - Fork 358
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
Add properties for DatetimeIndex #2074
Add properties for DatetimeIndex #2074
Conversation
hour = _unsupported_property("hour", cls="DatetimeIndex") | ||
minute = _unsupported_property("minute", cls="DatetimeIndex") | ||
second = _unsupported_property("second", cls="DatetimeIndex") | ||
microsecond = _unsupported_property("microsecond", cls="DatetimeIndex") | ||
nanosecond = _unsupported_property("nanosecond", cls="DatetimeIndex") |
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.
Properties that are still missing would be implemented in follow-up PRs.
We don't implement them in datetimelike properties of the Series values, either.
Codecov Report
@@ Coverage Diff @@
## master #2074 +/- ##
==========================================
- Coverage 94.68% 93.89% -0.79%
==========================================
Files 55 55
Lines 11747 11802 +55
==========================================
- Hits 11123 11082 -41
- Misses 624 720 +96
Continue to review full report at Codecov.
|
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.
Could you also update docs/source/reference/indexing.rst
?
Sounds good! Updated. |
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.
Otherwise, LGTM.
Merged! Thank you! |
The PR is proposed to add properties for DatetimeIndex. The added properties follow datetimelike properties of the Series values.