Created
January 17, 2020 10:02
-
-
Save cereniyim/58928368420645a2aaa9ee9ae6e86ed6 to your computer and use it in GitHub Desktop.
Gapminder's animated bubble chart
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
px.scatter(gapminder_df, | |
x="Income", | |
y="Life Expectancy", | |
size="Population", | |
size_max=60, | |
color="Region", | |
hover_name="Country", | |
animation_frame="Year", | |
animation_group="Country", | |
color_discrete_sequence=["#FF69B4", "#87CEFA", | |
"#FFFF00", "#32CD32"], | |
log_x=True, | |
range_x=[100, 100000], | |
range_y=[25, 90]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment