Skip to content

Instantly share code, notes, and snippets.

@santiagocasas
Last active March 16, 2020 23:03
Show Gist options
  • Save santiagocasas/6f27ed5b4ae0e10ea312b6c91d97a2bf to your computer and use it in GitHub Desktop.
Save santiagocasas/6f27ed5b4ae0e10ea312b6c91d97a2bf to your computer and use it in GitHub Desktop.
loaddata
leaveout = -1
for country in countries_list:
print('----')
print('Country: ', country)
if leaveout==0:
leaveout=None
x = np.array(list(df_dict[country]['DayCount'].values))[0:leaveout] ##remove last data point to make prediction
y = np.array(list(df_dict[country]['Cases'].values))[0:leaveout] ##remove last data point to make prediction
y0 = y[0]
yf = y[-1]
print("Initial number of cases: ", y0)
print("Current number of cases: ", yf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment