色相(hue)の力

スプレッドシートユーザーのための Python

Chris Cardillo

Data Scientist

シンプルな棒グラフ

グラフ

最終版 店舗別売上.png

グラフの元データ

基本グラフを支えるデータ.png

スプレッドシートユーザーのための Python

より詳細な棒グラフ

新しいグラフの元データ

店舗・商品名で並べ替えた果物店データ.png

スプレッドシートユーザーのための Python

より詳細な棒グラフ

新しいグラフの元データ

店舗・商品名で並べ替えた果物店データ.png

新しいグラフ

店舗別売上 ― 果物内訳.png

スプレッドシートユーザーのための Python

Hue

sns.barplot(x='store',
            y='revenue',
            data=fruit_store_summary,
            hue='product_name')

店舗別売上 ― 果物内訳.png

スプレッドシートユーザーのための Python

plt.legend()

sns.barplot(x='store',
            y='revenue',
            data=fruit_store_summary,
            hue='product_name')

plt.legend(bbox_to_anchor=(1, 1))

店舗別売上 ― 果物内訳.png

スプレッドシートユーザーのための Python

まとめて表示

sns.set_style('whitegrid')

sns.barplot(x='store',
            y='revenue',
            data=fruit_store_summary,
            hue='product_name')

plt.legend(bbox_to_anchor=(1, 1))

plt.title('Revenue by Store - Fruit Breakdown')
plt.xlabel('Store')
plt.ylabel('Revenue (USD)')
sns.despine()
plt.show()

店舗別売上 ― 果物内訳.png

スプレッドシートユーザーのための Python

あなたの番です

スプレッドシートユーザーのための Python

Preparing Video For Download...