Created
June 2, 2020 09:17
-
-
Save rohitrajiit/5f1a6e6088cf9fe35845f6bd7b351eba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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