Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

seaborn distribution plot for all columns

x = 2
y = 2

fig, ax = plt.subplots(x, y, figsize=(32, 72))
col = 0
column = df_train.drop('id', axis=1).columns
for i in range(x):
    for j in range(y):
        sns.distplot(df[column[col]], color='purple', ax=ax[i][j])
        ax[i][j].set_title(*[column[col]])
        col+=1
 
PREVIOUS NEXT
Tagged: #seaborn #distribution #plot #columns
ADD COMMENT
Topic
Name
1+5 =