Skip to content

Instantly share code, notes, and snippets.

@kurasaiteja
Last active March 21, 2021 14:59
Show Gist options
  • Save kurasaiteja/af093585ded993034b8d995b99e9ae3c to your computer and use it in GitHub Desktop.
Save kurasaiteja/af093585ded993034b8d995b99e9ae3c to your computer and use it in GitHub Desktop.
title = ("Death Rates", "Percentage of the confired cases have died from Covid-19")
data = summary_df.copy()
data['death_rate'] = (data['total_deaths']/data['total_confirmed'])*100
data = data.dropna(subset=['death_rate'])
fig = px.scatter_geo(data, locations="country", color="continent",
locationmode='country names',
hover_name="country", size="death_rate",
projection="natural earth")
fig.update_layout(title=title, title_x=0.45)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment