Skip to content

Instantly share code, notes, and snippets.

@rvipandey
Created June 27, 2020 14:48
Show Gist options
  • Save rvipandey/56349d4997d77c5c2988d00222ee246e to your computer and use it in GitHub Desktop.
Save rvipandey/56349d4997d77c5c2988d00222ee246e to your computer and use it in GitHub Desktop.
population=state_wise_daily.groupby(["Date"])[["Confirmed","Deceased","Recovered"]].sum().reset_index()
population["day_count"]=list(range(1,len(population)+1))
fig = px.bar(population, x='day_count', y='Confirmed',text='Confirmed')
fig.update_traces(texttemplate='%{text:.2s}', textposition='outside')
fig.update_layout(
xaxis_title="Day",
yaxis_title="Population Effected",
title='Evaluation of Confirmed Cases In India',template='gridon')
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment