Last active
March 21, 2021 14:59
-
-
Save kurasaiteja/af093585ded993034b8d995b99e9ae3c 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
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