Created
August 22, 2020 13:22
-
-
Save fk-pixel/e1aca0e178459d03f887b2ecabd6bd41 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
# 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