seaborn绘图:seaborn.displot查看变量分布

版本:Jupyter NoteBook 5.5.0  python 3.6.5

例子:
fig, axes = plt.subplots(nrows = 19, ncols = 2, figsize = (40, 200))
for ax, column in zip(axes.flatten(), x_train.columns):
    sns.distplot(x_train[column].dropna(), ax = ax, color = 'darkred')
    ax.set_title(column, fontsize = 43)
    ax.tick_params(axis = 'both', which = 'major', labelsize = 35)
    ax.tick_params(axis = 'both', which = 'minor', labelsize = 35)
    ax.set_xlabel('')
fig.tight_layout(rect = [0, 0.03, 1, 0.95])

猜你喜欢

转载自blog.csdn.net/u014652309/article/details/84994621