Plot distribution of each feature in subplots

PHOTO EMBED

Sat Aug 06 2022 08:58:16 GMT+0000 (Coordinated Universal Time)

Saved by @pathikg #python

fig, axes = plt.subplots(rows,cols, figsize=(20,20))
axes = axes.ravel()

for i, col in enumerate(train_df.columns)  :
    sns.histplot(train_df[col], kde=True, stat='density', ax=axes[i])

fig.suptitle("Distribution plot for each feature")
fig.tight_layout()
content_copyCOPY