Class 12th CBSE IP
Considering the DataFrame created in Program 13 and present the sales of the east region
Solution: –
import matplotlib.pyplot as plt import pandas as pd dict1={'north':[110,150,230,400], 'east':[200,90,150,350] } df=pd.DataFrame(dict1, index=['April','May','june','July']) print(df) df['east'].plot(kind='barh', color=['green']) plt.title("East Region Sales Month wise",fontsize=14,color="blue") plt.xlabel("Sales",fontsize=14,color="red") plt.ylabel("Month",fontsize=14,color="red") plt.xticks(fontsize=10, rotation=30) plt.show()
Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable
Popular Videos
UX for Teams
Learn the basics and a bit beyond to improve your backend dev skills.

Chris Matthews
Designer
SEO & Instagram
Learn the basics and a bit beyond to improve your backend dev skills.

Chris Matthews
Designer