Description
In Pandas
>>> import pandas as pd >>> pd.options.plotting.backend = "plotly" >>> df = pd.DataFrame({'mass': [0.330, 4.87 , 5.97], ... 'radius': [2439.7, 6051.8, 6378.1]}, ... index=['Mercury', 'Venus', 'Earth']) >>> df mass radius Mercury 0.33 2439.7 Venus 4.87 6051.8 Earth 5.97 6378.1 >>> fig = df.plot.pie() Traceback (most recent call last): ... raise ValueError("pie requires either y column or 'subplots=True'") ValueError: pie requires either y column or 'subplots=True' >>> fig = df.plot.pie(subplots=True) Traceback (most recent call last): ... NotImplementedError: kind='pie' not yet supported for plotting.backend='plotly' >>> pd.__version__ '2.2.2'