DEV Community

Larry
Larry

Posted on

Pie Chart in Python

Alt Text

What is Pie Chart?

A pie chart is a type of graph that represents the data in the circular graph.

How to plot?

import matplotlib as mpl import matplotlib.pyplot as plt dataframe["Total"].plot(kind="pie") // here "Total" is data table column name plt.title("Pie Chart") plt.show() 
Enter fullscreen mode Exit fullscreen mode

Thanks

Top comments (0)