728x90
sns.histplot(iris_data['Petal Length (cm)'])
sns.kdeplot(data=iris_data['Petal Length (cm)'], shade=True)
# 2D KDE plot
sns.jointplot(x=iris_data['Petal Length (cm)'], y=iris_data['Sepal Width (cm)'], kind="kde")
# KDE plots for each species
sns.kdeplot(data=iris_data, x='Petal Length (cm)', hue='Species', shade=True)
728x90
'<Kaggle-Course>' 카테고리의 다른 글
| 캐글 data_visualization/06-choosing-plot-types-and-custom-styles (0) | 2023.03.17 |
|---|---|
| 캐글 data_visualization/04-scatter-plots (0) | 2023.03.17 |
| 캐글 data_visualization/03-bar-charts-and-heatmaps (0) | 2023.03.17 |
| 캐글 data_visualization/02-line-charts (0) | 2023.03.17 |
| 캐글 data_visualization/01-hello-seaborn (0) | 2023.03.17 |