pie chart python pandas

Solutions on MaxInterview for pie chart python pandas by the best coders in the world

showing results for - "pie chart python pandas"
Liam
28 Jul 2017
1df = pd.DataFrame({'mass': [0.330, 4.87 , 5.97],
2                   'radius': [2439.7, 6051.8, 6378.1]},
3                    index = ['Mercury', 'Venus', 'Earth'])
4
5plot = df.plot.pie(y='mass', figsize=(5, 5))