Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 29, 2020 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/d4fe78dff033b369b07ec81287acac66 to your computer and use it in GitHub Desktop.
Save amankharwal/d4fe78dff033b369b07ec81287acac66 to your computer and use it in GitHub Desktop.
df.Deaths.plot(title="Daily Covid19 Deaths in World",marker=".",figsize=(10,5),label="daily deaths")
df.Deaths.rolling(window=5).mean().plot(figsize=(10,5),label="MA5")
plt.ylabel("Deaths")
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment