Matplotlib and seaborn 3 · seaborn

Histogram with density

A histogram with a smooth density curve on top.

df = sns.load_dataset("penguins")
sns.histplot(data=df, x="flipper_length_mm", kde=True)

Official Matplotlib and seaborn 3 documentation

More seaborn commands

All seaborn commands · Matplotlib and seaborn 3 cheatsheet

Was this page helpful?