Untitled
unknown
plain_text
3 years ago
429 B
12
Indexable
# Посмотрим жанры по регионам
regions = ['na_sales', 'eu_sales', 'jp_sales', 'other_sales']
top_genre = data_actual.groupby('genre')[regions].sum().sort_values('na_sales', ascending=False)
# Пробуем посмотреть на одном графике
fig, ax = plt.subplots(figsize=(20,10))
for region in regions:
ax.bar(top_genre.index, top_genre[region], label=region)
plt.show()Editor is loading...