Last active
October 6, 2021 13:18
-
-
Save RizqiEka/72f825321d7449907a474412961a4c14 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
# Create DataFrame - Audience by City | |
df_audience_city = pd.Series(audience_city, name='Count') | |
df_audience_city.index.name = 'City' | |
df_audience_city = df_audience_city.sort_values(ascending=False).reset_index() | |
df_audience_city | |
# Create DataFrame - Audience by Country | |
df_audience_country = pd.Series(audience_country, name='Count') | |
df_audience_country.index.name = 'Country' | |
df_audience_country = df_audience_country.sort_values(ascending=False).reset_index() | |
df_audience_country | |
# Create DataFrame - Audience by Gender-Age | |
df_audience_genderage = pd.Series(audience_genderage, name='Count') | |
df_audience_genderage.index.name = 'Country' | |
df_audience_genderage = df_audience_genderage.sort_values(ascending=False).reset_index() | |
df_audience_genderage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment