Block 35: Seaborn: Introduction & Distribution Plots
Use Seaborn for statistically-informed, beautiful visualizations.
Concepts
- import seaborn as sns
- sns.set_theme() for consistent styling
- sns.histplot() and sns.kdeplot()
- hue parameter for color grouping
Code Examples
See exercise below.
Exercise
sns.histplot of sepal_length colored by species. Overlay a KDE on the histogram.
Homework
What does KDE (Kernel Density Estimate) represent? Explain in plain language.