######DataFrameのvalue_counts から取得したデータの円グラフにラベルをつけたいのですが、方法がわかりません どうすればいいでしょうか
######書いたコード
rea_counts
1print(rea_counts) 2plt.axis('equal') 3print(plt.pie(rea_counts))
コード
######実行結果
course 145
home 109
reputation 105
other 36
Name: reason, dtype: int64
([<matplotlib.patches.Wedge at 0x11fe19908>,
<matplotlib.patches.Wedge at 0x11de00b00>,
<matplotlib.patches.Wedge at 0x11ddc8eb8>,
<matplotlib.patches.Wedge at 0x11fe42518>],
[<matplotlib.text.Text at 0x11de00a20>,
<matplotlib.text.Text at 0x11ddc8ac8>,
<matplotlib.text.Text at 0x11ddc8da0>,
<matplotlib.text.Text at 0x11fe42a20>])```
(適当に色付けされた円グラフ)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/13 10:21