Lesson 32 of 60
pythonLine, Scatter, and Bar Charts
15 minutes
Course progress53%
Common Plot Types
We'll explore the most frequently used chart types.
Line chart (trend over time)
import pandas as pd
import matplotlib.pyplot as plt
time = pd.date_range(start='2024-01-01', periods=12, freq='M')
values = np.random.randn().cumsum()
plt.plot(time, values, marker=)
plt.title()
plt.xlabel()
plt.ylabel()
plt.grid()
plt.show()