Skip to content

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

Merged
merged 2 commits into from
Jan 25, 2018
Merged

implement ABCInterval #19367

merged 2 commits into from
Jan 25, 2018

Conversation

jbrockmendel
Copy link
Member

Avoid python-space import in lib

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@@ -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", ))
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member

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 ?

Copy link
Member Author

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.

@gfyoung gfyoung added Interval Interval data type Enhancement Dtype Conversions Unexpected or buggy dtype conversions labels Jan 24, 2018
@jreback
Copy link
Contributor

jreback commented Jan 24, 2018

need test in pandas/tests/dtypes/test_generic.py

Copy link
Contributor

@jreback jreback left a 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
Copy link

codecov bot commented Jan 24, 2018

Codecov Report

Merging #19367 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Flag Coverage Δ
#multiple 89.97% <100%> (-0.02%) ⬇️
#single 41.72% <100%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/dtypes/generic.py 100% <100%> (ø) ⬆️
pandas/util/testing.py 83.83% <0%> (-0.62%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7202635...6162585. Read the comment docs.

@jreback jreback added this to the 0.23.0 milestone Jan 25, 2018
@jreback jreback merged commit e865b77 into pandas-dev:master Jan 25, 2018
@jreback
Copy link
Contributor

jreback commented Jan 25, 2018

thanks!

@jbrockmendel jbrockmendel deleted the abcinterval branch February 11, 2018 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Enhancement Interval Interval data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants