Matplotlib
Data Visualization
import matplotlib
matplotlib.plot([1, 2, 3, 4]) # This will NOT work!Breakdown of the below code is as follows:
import matplotlib.pyplot as plt
months = ["Jan", "Feb", "Mar", "Apr"]
sales = [5000, 7000, 8000, 6500]
plt.plot(months, sales)
plt.title("Monthly Sales Trend")
plt.show()Last updated