Last active
March 4, 2022 03:31
-
-
Save agung037/b71e63096570e4593653dca49ceb4483 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
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| d = pd.read_excel('./data.xlsx') | |
| data_by_genre = {} | |
| for g in range(len(d['Genre'])): | |
| data_by_genre[d['Genre'][g]] = list(d.loc[g][1:]) | |
| pd.DataFrame(data_by_genre, index=list(d.head(0))[1:]).plot.bar(rot=45).plot() | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
