Skip to content

Commit

Permalink
Remove one-off 2021 datapoint from healthexp dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Sep 5, 2022
1 parent 8217ecc commit 8c2c424
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion healthexp.csv
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,3 @@ Year,Country,Spending_USD,Life_Expectancy
2020,Great Britain,5018.7,80.4
2020,Japan,4665.641,84.7
2020,USA,11859.179,77.0
2021,Germany,7382.634,80.9
1 change: 1 addition & 0 deletions process/healthexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
pd.read_csv("raw/healthexp.csv")
.assign(Country=lambda x: x["Country"].map(G7_countries))
.dropna(subset=["Country"])
.query("Year <= 2020")
.to_csv("healthexp.csv", index=False)
)

0 comments on commit 8c2c424

Please sign in to comment.