Examples
Information about planet’s mass and radius:
Here we pass the the ‘mass’ column to the pie function to get a pie plot.
import numpy as np
import pandas as pd
df = pd.DataFrame({'mass': [2.87, 5.97, 6.00],
'radius': [6051.8, 6378.1, 71492]},
index=['Venus', 'Earth', 'Jupiter'])
plot = df.plot.pie(y='mass', figsize=(5, 5))
plot = df.plot.pie(subplots=True, figsize=(6, 4))