Introduction to Data Science in Python
Hillary Green-Lerman
Lead Data Scientist, Looker



plt.hist(gravel.mass)
plt.show()

plt.hist(data, bins=nbins)
plt.hist(gravel.mass, bins=40)

plt.hist(data,
range=(xmin, xmax))
plt.hist(gravel.mass,
range=(50, 100))

Unnormalized bar plot
plt.hist(male_weight)
plt.hist(female_weight)

Sum of bar area = 1
plt.hist(male_weight, density=True)
plt.hist(female_weight, density=True)

Introduction to Data Science in Python