Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pie chart python pandas

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))
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #pie #chart #python #pandas
ADD COMMENT
Topic
Name
7+9 =