Skip to content

Commit 55bf02f

Browse files
committed
removed duplicate of US data
1 parent d0cd055 commit 55bf02f

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

COVID-19

Submodule COVID-19 updated 63 files

fetcher.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
FILENAME_JOHN_HOPKINS = {
1313
"confirmed": "time_series_covid19_confirmed_global.csv",
1414
"death": "time_series_covid19_deaths_global.csv",
15-
"confirmed_US": "time_series_covid19_confirmed_US.csv",
16-
"death_US": "time_series_covid19_deaths_US.csv",
1715
}
1816

1917
URL_COUNTRY_ISO = (
@@ -65,13 +63,6 @@ def fetch_john_hopkins_data():
6563
df_covid[key] = df_covid[key].drop(columns=[col, ])
6664
df_covid[key] = df_covid[key].rename(
6765
columns={'Country_Region': 'Country/Region'})
68-
# Merge US and global
69-
df_covid['confirmed'] = pd.concat(
70-
[df_covid['confirmed'], df_covid.pop('confirmed_US')],
71-
)
72-
df_covid['death'] = pd.concat(
73-
[df_covid['death'], df_covid.pop('death_US')],
74-
)
7566
for key in df_covid:
7667
df_covid[key] = df_covid[key].groupby("Country/Region").sum()
7768
# move each date column as a row entry to get a "date" column instead

0 commit comments

Comments
 (0)