0

I am using the Wisconsin Breast Cancer dataset for a class project and I am attempting to display 10 KDE plots in 5 x 2 layout. Unfortunately,the plots are displayed in scrollable window which is definitely not what I would like.

features = ['radius_mean', 'texture_mean', 'perimeter_mean', 'area_mean', 'smoothness_mean', 'compactness_mean', 'concavity_mean', 'concave_points_mean', 'symmetry_mean', fractal_dimension_mean']

for feature in features:
    df[feature].plot.kde(title=feature)
    plt.show() 

Any help would be appreciated.

Thank you.

CaitlinG
  • 1,825
  • 2
  • 23
  • 34
  • Your post gives the impression you forgot to include reproducible data and the necessary imports. Did you try to convert your data to long format (`df.melt(...)`) and then call `sns.displot(kind='kde', ...)`? You might want to reread https://stackoverflow.com/help/how-to-ask – JohanC May 07 '22 at 21:58

0 Answers0