Skip to content

Implementing DayOfYear primitive#2110

Merged
sbadithe merged 10 commits intomainfrom
issue2069-adding-DayOfYear-primitive
Jun 17, 2022
Merged

Implementing DayOfYear primitive#2110
sbadithe merged 10 commits intomainfrom
issue2069-adding-DayOfYear-primitive

Conversation

@sbadithe
Copy link
Contributor

Clean PR for implementing DayOfYear primitive

@codecov
Copy link

codecov bot commented Jun 16, 2022

Codecov Report

Merging #2110 (d26dbe5) into main (51eb3d5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #2110   +/-   ##
=======================================
  Coverage   99.20%   99.20%           
=======================================
  Files         143      143           
  Lines       16569    16585   +16     
=======================================
+ Hits        16437    16453   +16     
  Misses        132      132           
Impacted Files Coverage Δ
...imitives/standard/datetime_transform_primitives.py 100.00% <100.00%> (ø)
.../tests/primitive_tests/test_transform_primitive.py 100.00% <100.00%> (ø)

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 51eb3d5...d26dbe5. Read the comment docs.

@sbadithe sbadithe marked this pull request as ready for review June 16, 2022 22:36
doy = DayOfYear()
dates = pd.Series(datetime(2020, 12, 31))
days_of_year = doy(dates)
correct_days = [366]
Copy link
Contributor

Choose a reason for hiding this comment

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

I like that this tests the leap year case!

Copy link
Contributor

@tamargrey tamargrey left a comment

Choose a reason for hiding this comment

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

This looks good to me!

@sbadithe sbadithe merged commit 5615776 into main Jun 17, 2022
@sbadithe sbadithe deleted the issue2069-adding-DayOfYear-primitive branch June 17, 2022 15:29
@sbadithe sbadithe mentioned this pull request Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants