0PricingLogin
Data Science Academy · Lesson

Distributions: hist, kde, box

Seeing the shape of one variable.

See the Shape of One Column

Before averages, look at the whole spread. A distribution plot shows how often each value appears across a single column.

The Histogram

A histogram drops values into bins and draws a bar for each. Tall bars mark the values that show up most often.

sns.histplot(data=df, x="age")

All lessons in this course

  1. Why seaborn Over Raw matplotlib
  2. Distributions: hist, kde, box
  3. Relationships: scatter and line
  4. Facets, Hue, and Style
← Back to Data Science Academy