📜  饼图 python pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:33.175000             🧑  作者: Mango

代码示例1
df = pd.DataFrame({'mass': [0.330, 4.87 , 5.97],
                   'radius': [2439.7, 6051.8, 6378.1]},
                    index = ['Mercury', 'Venus', 'Earth'])

plot = df.plot.pie(y='mass', figsize=(5, 5))