Answer to Question #311550 in Python for Hdjdm

Question #311550

Plot a pie chart for columns: ‘cyl’ and ‘model’ form the mtcars.csv data frame.



1
Expert's answer
2022-03-15T12:12:23-0400
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?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS