-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
implement ABCInterval #19367
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 ABCInterval #19367
Conversation
pandas/core/dtypes/generic.py
Outdated
@@ -54,6 +54,7 @@ def _check(cls, inst): | |||
ABCPeriod = create_pandas_abc_type("ABCPeriod", "_typ", ("period", )) | |||
ABCDateOffset = create_pandas_abc_type("ABCDateOffset", "_typ", | |||
("dateoffset",)) | |||
ABCInterval = create_pandas_abc_type("ABCPeriod", "_typ", ("interval", )) |
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.
The first argument should be "ABCInterval" instead of "ABCPeriod", right? Or am I missing something?
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.
@jschendel : I don't believe you are.
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.
@jbrockmendel : Do we need any tests for this new ABCType
?
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.
Yah typo, will fix, good catch.
need test in pandas/tests/dtypes/test_generic.py |
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.
as per comments
Codecov Report
@@ Coverage Diff @@
## master #19367 +/- ##
==========================================
- Coverage 91.61% 91.6% -0.02%
==========================================
Files 150 150
Lines 48677 48685 +8
==========================================
+ Hits 44595 44596 +1
- Misses 4082 4089 +7
Continue to review full report at Codecov.
|
thanks! |
Avoid python-space import in lib
git diff upstream/master -u -- "*.py" | flake8 --diff