Skip to content

Instantly share code, notes, and snippets.

@rohitrajiit
Created June 2, 2020 09:21
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 rohitrajiit/9a7ff864670011e881e32dca4fc1b546 to your computer and use it in GitHub Desktop.
Save rohitrajiit/9a7ff864670011e881e32dca4fc1b546 to your computer and use it in GitHub Desktop.
stateslist = ['Maharashtra', 'Gujarat', 'Delhi', 'Karnataka', 'Kerala', 'West Bengal']
for state in stateslist:
statedata = data[data['state']==state]
plt.plot(statedata['Dates'][-15:], statedata['dailytested'][-15:], label=state)
plt.title('Daily Tests ')
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment