Box plot shows quartiles, median, and outliers.
sns.boxplot(data=df, x="species", y="petal_length")
plt.title("Petal Length by Species")
Used in ML: detect outliers in features, compare distributions.
Visualize correlations between features.
corr = df.corr()
sns.heatmap(corr, annot=True, cmap="coolwarm", vmin=-1, vmax=1)
plt.title("Feature Correlation")
Used in ML: drop highly correlated features (multicollinearity).