Skip to content

Add IsFederalHoliday transform primitive - #1912

Merged
jeff-hernandez merged 13 commits into
mainfrom
is_federal_holiday
Feb 17, 2022
Merged

Add IsFederalHoliday transform primitive#1912
jeff-hernandez merged 13 commits into
mainfrom
is_federal_holiday

Conversation

@jeff-hernandez

Copy link
Copy Markdown
Contributor

Closes #1869

self.country = country
try:
self.holidays = holidays.CountryHoliday(self.country)
except (KeyError, NotImplementedError):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

holidays version 0.13 now raises NotImplementedError instead of KeyError

@jeff-hernandez
jeff-hernandez marked this pull request as ready for review February 17, 2022 18:48
@jeff-hernandez
jeff-hernandez requested review from a team and rwedge February 17, 2022 18:50
Comment thread Makefile
Comment thread featuretools/primitives/standard/datetime_transform_primitives.py Outdated
@codecov

codecov Bot commented Feb 17, 2022

Copy link
Copy Markdown

Codecov Report

Merging #1912 (c924b55) into main (83d67ee) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1912   +/-   ##
=======================================
  Coverage   98.77%   98.78%           
=======================================
  Files         148      149    +1     
  Lines       16352    16424   +72     
=======================================
+ Hits        16152    16224   +72     
  Misses        200      200           
Impacted Files Coverage Δ
...imitives/standard/datetime_transform_primitives.py 100.00% <100.00%> (ø)
featuretools/primitives/utils.py 99.51% <100.00%> (ø)
...s/tests/primitive_tests/test_is_federal_holiday.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 83d67ee...c924b55. Read the comment docs.

Comment thread featuretools/primitives/utils.py

@rwedge rwedge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good

@jeff-hernandez
jeff-hernandez merged commit 1fd1833 into main Feb 17, 2022
@jeff-hernandez
jeff-hernandez deleted the is_federal_holiday branch February 17, 2022 20:17
@jeff-hernandez jeff-hernandez mentioned this pull request Feb 17, 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.

Add IsFederalHoliday transform primitive

4 participants