Skip to content

Refactoring#3

Closed
dgenio wants to merge 12 commits intoempty_branchfrom
refactoring
Closed

Refactoring#3
dgenio wants to merge 12 commits intoempty_branchfrom
refactoring

Conversation

@dgenio
Copy link
Copy Markdown
Owner

@dgenio dgenio commented Apr 18, 2023

No description provided.

downcast="float",
errors="coerce"
)
long_data = long_data.dropna(subset=["value"])
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Owner Author

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.

Comment thread life_expectancy/cleaning.py Outdated
Comment thread life_expectancy/tests/test_cleaning.py Outdated

def test_clean_data(pt_life_expectancy_expected):
"""Run the `main` function and compare the output to the expected output"""
main(country_code="PT")
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Owner Author

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.

Comment thread life_expectancy/cleaning.py
@dgenio dgenio closed this Feb 18, 2026
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.

2 participants