Plt.hist с использованием корзин
counts, bins = np.histogram(data)
plt.hist(bins[:-1], bins, weights=counts)
Perro Fiel
counts, bins = np.histogram(data)
plt.hist(bins[:-1], bins, weights=counts)