-
Notifications
You must be signed in to change notification settings - Fork 0
Refactoring #3
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
base: empty_branch
Are you sure you want to change the base?
Refactoring #3
Conversation
New ci branch
Split clean data into 3 function ( plus an helper function) Add main function Change test to use main function
To give full code visibility to a new reviewer
| downcast="float", | ||
| errors="coerce" | ||
| ) | ||
| long_data = long_data.dropna(subset=["value"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't use as many variable names for the different versions of the dataset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually prefer it, to ensure I understand what's in the variable at each point.
|
|
||
| def test_clean_data(pt_life_expectancy_expected): | ||
| """Run the `main` function and compare the output to the expected output""" | ||
| main(country_code="PT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think you should change the argument of your test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I clearly miss understood what I should do.
Remove argument on test as suggested
No description provided.