DEV Community


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")
Enter fullscreen mode Exit fullscreen mode


Discussion (0)