Skip to content
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

Adding Interval Dtype #6984

Merged
merged 27 commits into from
Feb 19, 2021
Merged

Conversation

marlenezw
Copy link
Contributor

This PR is intended to add the Interval Dtype to CuDF. Interval is an ExtensionDtype for Interval data. This PR closes #5376.

@marlenezw marlenezw requested a review from a team as a code owner December 11, 2020 15:27
@marlenezw marlenezw self-assigned this Dec 11, 2020
@marlenezw marlenezw added Python Affects Python cuDF API. 2 - In Progress Currently a work in progress labels Dec 11, 2020
@marlenezw
Copy link
Contributor Author

Working on adding a few more tests and adjusting the dtype to change based on closed being either 'left' or 'right.' Not sure which labels to add to make the label checker pass.

@codecov
Copy link

codecov bot commented Dec 11, 2020

Codecov Report

❗ No coverage uploaded for pull request base (branch-0.19@d180213). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##             branch-0.19    #6984   +/-   ##
==============================================
  Coverage               ?   82.23%           
==============================================
  Files                  ?      101           
  Lines                  ?    17060           
  Branches               ?        0           
==============================================
  Hits                   ?    14029           
  Misses                 ?     3031           
  Partials               ?        0           

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 d180213...76955cc. Read the comment docs.

@marlenezw marlenezw changed the title [WIP] Adding Interval Dtype [REVIEW] Adding Interval Dtype Dec 16, 2020
@marlenezw marlenezw added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Dec 16, 2020
@marlenezw marlenezw added the improvement Improvement / enhancement to an existing function label Jan 20, 2021
python/cudf/cudf/core/column/column.py Show resolved Hide resolved
python/cudf/cudf/core/column/column.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/column/column.py Show resolved Hide resolved
python/cudf/cudf/core/column/column.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/column/interval.py Show resolved Hide resolved
python/cudf/cudf/core/column/interval.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/column/struct.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/dtypes.py Show resolved Hide resolved
Copy link
Member

@ajschmidt8 ajschmidt8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @marlenezw, please make sure to remove the CHANGELOG.md changes from this PR. changelog entries are now handled automatically and any manual edits risk breaking the automation. thanks!

CHANGELOG.md Outdated Show resolved Hide resolved
python/cudf/cudf/core/column/interval.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/column/interval.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/column/interval.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/dtypes.py Show resolved Hide resolved
python/cudf/cudf/core/frame.py Outdated Show resolved Hide resolved
@ajschmidt8 ajschmidt8 dismissed their stale review February 17, 2021 15:47

changelog changes removed

Copy link
Collaborator

@kkraus14 kkraus14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last change and this looks good to go!

python/cudf/cudf/core/column/interval.py Outdated Show resolved Hide resolved
@kkraus14
Copy link
Collaborator

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 0d03d9f into rapidsai:branch-0.19 Feb 19, 2021
rapids-bot bot pushed a commit that referenced this pull request Apr 2, 2021
This PR is a follow up to PR #6984. It adds the IntervalIndex and interval_range classes to CuDF. IntervalIndex is needed for the `cut` and `histogram` methods and closes issue #5376.   

The main files to take note of in this PR are `index.py` and the two cudf `__init__.py` files. The rest of the file changes are related to PR6984 for creating the interval dtype.

Authors:
  - Marlene  (https://github.com/marlenezw)
  - Michael Wang (https://github.com/isVoid)

Approvers:
  - Keith Kraus (https://github.com/kkraus14)

URL: #7182
shwina pushed a commit to shwina/cudf that referenced this pull request Apr 7, 2021
This PR is a follow up to PR rapidsai#6984. It adds the IntervalIndex and interval_range classes to CuDF. IntervalIndex is needed for the `cut` and `histogram` methods and closes issue rapidsai#5376.   

The main files to take note of in this PR are `index.py` and the two cudf `__init__.py` files. The rest of the file changes are related to PR6984 for creating the interval dtype.

Authors:
  - Marlene  (https://github.com/marlenezw)
  - Michael Wang (https://github.com/isVoid)

Approvers:
  - Keith Kraus (https://github.com/kkraus14)

URL: rapidsai#7182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA][DISCUSSION] IntervalDtype and IntervalIndex
4 participants