Histogram oluşturma

Python ile Veri Bilimine Giriş

Hillary Green-Lerman

Lead Data Scientist, Looker

Kaçıranı iz sürme

Python ile Veri Bilimine Giriş

Histogram nedir?

Python ile Veri Bilimine Giriş

matplotlib ile histogramlar

plt.hist(gravel.mass)

plt.show()

Python ile Veri Bilimine Giriş

Kutu sayısını değiştirme

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

Python ile Veri Bilimine Giriş

Aralığı değiştirme

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

Python ile Veri Bilimine Giriş

Normalize etme

Normalize edilmemiş çubuk grafiği

plt.hist(male_weight)
plt.hist(female_weight)

Çubuk alanlarının toplamı = 1

plt.hist(male_weight, density=True)
plt.hist(female_weight, density=True)

Python ile Veri Bilimine Giriş

Hadi pratik yapalım!

Python ile Veri Bilimine Giriş

Preparing Video For Download...