Skip to content

Instantly share code, notes, and snippets.

@rohitrajiit
Created June 2, 2020 09:17
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/5f1a6e6088cf9fe35845f6bd7b351eba to your computer and use it in GitHub Desktop.
Save rohitrajiit/5f1a6e6088cf9fe35845f6bd7b351eba 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'], statedata['positive']/statedata['totaltested'], label=state)
plt.title('Test Positive Rate: Cumulative cases/Total tests ')
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment