Created
May 27, 2022 13:16
-
-
Save rian-dolphin/94a3cf9f09cedb857b23b52153048a80 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
# -- Read in the data | |
df = px.data.gapminder() | |
# -- Apply the year filter given by the user | |
filtered_df = df[(df.year == year_choice)] | |
# -- Apply the continent filter | |
if continent_choice != "All": | |
filtered_df = filtered_df[filtered_df.continent == continent_choice] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment