Box Plot

PHOTO EMBED

Tue Nov 19 2024 02:50:13 GMT+0000 (Coordinated Universal Time)

Saved by @login123

#5. Box Plot
#Box plots are used to show the distribution of data based on quartiles.
# Example: Box plot of Sales
sales = [12000, 15000, 17000, 13000, 16000, 19000]

plt.boxplot(sales)
plt.title("Box Plot of Sales")
plt.ylabel("Sales ($)")
plt.show()
content_copyCOPY