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

Refactoring ceil/round/floor code for datetime64[ns] types #9926

Merged

Conversation

mayankanand007
Copy link
Contributor

This PR is a follow up to #9820 where @bdice and @vyasr raised the point of having a design such that we avoid writing bunch of boilerplate code, which is common in the implementations of ceil/round/floor. The aim is to reduce the total number of functions, as well as have a cleaner design.

@mayankanand007 mayankanand007 added 2 - In Progress Currently a work in progress proposal Change current process or code libcudf Affects libcudf (C++/CUDA) code. Python Affects Python cuDF API. Cython improvement Improvement / enhancement to an existing function breaking Breaking change labels Dec 16, 2021
@mayankanand007 mayankanand007 self-assigned this Dec 16, 2021
@mayankanand007 mayankanand007 requested review from a team as code owners December 16, 2021 21:19
@mayankanand007 mayankanand007 marked this pull request as draft December 16, 2021 21:19
@bdice bdice removed the proposal Change current process or code label Dec 16, 2021
@mayankanand007 mayankanand007 marked this pull request as ready for review December 16, 2021 21:55
@mayankanand007 mayankanand007 changed the title [WIP] Refactoring ceil/round/floor code for datetime64[ns] types Refactoring ceil/round/floor code for datetime64[ns] types Dec 16, 2021
@bdice bdice added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Dec 16, 2021
@codecov
Copy link

codecov bot commented Dec 16, 2021

Codecov Report

Merging #9926 (3d277d2) into branch-22.02 (967a333) will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.02    #9926      +/-   ##
================================================
- Coverage         10.49%   10.40%   -0.09%     
================================================
  Files               119      119              
  Lines             20305    20507     +202     
================================================
+ Hits               2130     2134       +4     
- Misses            18175    18373     +198     
Impacted Files Coverage Δ
python/dask_cudf/dask_cudf/sorting.py 92.30% <0.00%> (-0.61%) ⬇️
python/cudf/cudf/__init__.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/index.py 0.00% <0.00%> (ø)
python/cudf/cudf/io/parquet.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/series.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/utils.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/dtypes.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/ioutils.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/dataframe.py 0.00% <0.00%> (ø)
... and 14 more

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 3c0d508...3d277d2. Read the comment docs.

Copy link
Contributor

@shwina shwina left a comment

Choose a reason for hiding this comment

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

Approving with a minor suggestion.

Copy link
Contributor

@karthikeyann karthikeyann left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Thanks @mayankanand007! This currently has 2 approvals. I did a final pass and I think it's ready to merge. I appreciate your hard work!

@bdice
Copy link
Contributor

bdice commented Jan 4, 2022

@gpucibot merge

1 similar comment
@bdice
Copy link
Contributor

bdice commented Jan 4, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 897a9ea into rapidsai:branch-22.02 Jan 4, 2022
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 breaking Breaking change improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants