-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
implement is_offsetlike #18823
implement is_offsetlike #18823
Conversation
pandas/core/dtypes/common.py
Outdated
Returns | ||
------- | ||
boolean : Whether the object is a DateOffset or listlike of DatetOffsets | ||
""" |
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.
can you add some examples
Codecov Report
@@ Coverage Diff @@
## master #18823 +/- ##
==========================================
- Coverage 91.64% 91.62% -0.02%
==========================================
Files 154 154
Lines 51401 51408 +7
==========================================
- Hits 47106 47104 -2
- Misses 4295 4304 +9
Continue to review full report at Codecov.
|
thanks! |
This is a subset of #18817 that just implements
is_offsetlike
indtypes.common
(plus a nicer docstring). This needs to be implemented before some fixes can be made in indexes.datetimelike, so is worth separating from the more difficult bits of 18817.git diff upstream/master -u -- "*.py" | flake8 --diff