Panda Visualization
Histogram
import matplotlib.pyplot as plt
plt.hist(traffic['Slowness in traffic (%)'])
plt.show()
A quicker way to generate the same histogram is to use the Series.plot.hist() method👍
The Pandas library has other useful visualization methods as well:
Series.plot.bar(): generates a vertical bar plot.
Series.plot.barh(): generates a horizontal bar plot.
Series.plot.line(): generates a line plot.
Scatter Plot
Last updated