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

Use pandas to_offset to parse frequency string in date_range #9843

Conversation

isVoid
Copy link
Contributor

@isVoid isVoid commented Dec 4, 2021

Pandas uses the following regex to convert freqeuncy strings into offset, which is exposed in public api pd.tseries.frequencies.to_offset. Currently cudf depends on a custom regex to perform the conversion. We probably shouldn't reinvent the wheels here as it might make it harder to track changes in pandas.

@isVoid isVoid requested a review from shwina December 4, 2021 05:10
@isVoid isVoid requested a review from a team as a code owner December 4, 2021 05:10
@isVoid isVoid requested a review from marlenezw December 4, 2021 05:10
@github-actions github-actions bot added the Python Affects Python cuDF API. label Dec 4, 2021
@isVoid isVoid added 3 - Ready for Review Ready for review by team non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Dec 4, 2021
python/cudf/cudf/core/tools/datetimes.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Dec 15, 2021

Codecov Report

Merging #9843 (b057746) into branch-22.02 (967a333) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.02    #9843      +/-   ##
================================================
- Coverage         10.49%   10.40%   -0.09%     
================================================
  Files               119      119              
  Lines             20305    20501     +196     
================================================
+ Hits               2130     2134       +4     
- Misses            18175    18367     +192     
Impacted Files Coverage Δ
python/cudf/cudf/__init__.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/column.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/index.py 0.00% <ø> (ø)
python/cudf/cudf/core/indexed_frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/multiindex.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/tools/datetimes.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/utils.py 0.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/sorting.py 92.30% <0.00%> (-0.61%) ⬇️
... and 18 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 83adc4b...b057746. Read the comment docs.

@isVoid
Copy link
Contributor Author

isVoid commented Dec 16, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 56430b4 into rapidsai:branch-22.02 Dec 16, 2021
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.

3 participants