Skip to content

Instantly share code, notes, and snippets.

@fk-pixel
Created August 22, 2020 13:22
Show Gist options
  • Save fk-pixel/e1aca0e178459d03f887b2ecabd6bd41 to your computer and use it in GitHub Desktop.
Save fk-pixel/e1aca0e178459d03f887b2ecabd6bd41 to your computer and use it in GitHub Desktop.
# Plotting a bar graph of the number of stores in each city, for the first ten cities listed# in the column 'City'
city_count = sbucks_de['City'].value_counts()
city_count = city_count[:10,]
plt.figure(figsize=(10,5))
sns.barplot(city_count.index, city_count.values, alpha=0.8)
plt.title('Starbucks TOP 10 City in DE')
plt.ylabel('Values', fontsize=12)
plt.xlabel('City', fontsize=12)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment