Plot a pie chart for columns: ‘cyl’ and ‘model’ form the mtcars.csv data frame.
import matplotlib.pyplot as plt import pandas as pd df = pd.read_csv('mtcars.csv') plt.pie(df['cyl']) plt.pie(df['model'])
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment