Last active
January 7, 2019 17:10
-
-
Save imamdigmi/18a80be2afffd083b08c637f8250f06d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Yogyakarta | 130 | |
|---|---|---|
| Jakarta Selatan | 193 | |
| Semarang | 109 | |
| Bandung | 170 | |
| Malang | 1343 | |
| Bogor | 980 | |
| Samarinda | 30 | |
| Bekasi | 43 | |
| Jambi | 541 | |
| Palangkaraya | 312 |
This file contains hidden or 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
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| headers = ['Kota', 'Pengunjung'] | |
| df = pd.read_csv('https://gist.githubusercontent.com/imamdigmi/18a80be2afffd083b08c637f8250f06d/raw/5ad220c04b2baa59bf7851e8dd6f4ffbb2d64a7c/September.csv', delimiter=",", names=headers) | |
| x = df['Kota'] | |
| y = df['Pengunjung'] | |
| plt.bar(x, y) | |
| plt.xlabel('Kota') | |
| plt.ylabel('Pengguna') | |
| plt.title('Pengunjung Bulan Januari') | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment