我希望在右上角的seaborn.displot上打印偏斜度和峰度。
下面是我要尝试的代码,但它引发了错误
sns.distplot(train_data.SalePrice, hist_kws = dict(edgecolor = 'k', linewidth = 2))
plt.text(x=0.97, y=0.97, s="Skewness: %f" % train_data.SalePrice.skew(),\
fontweight='demibold', fontsize=10, verticalalignment='top', horizontalalignment='right', backgroundcolor='white', color='xkcd:poo brown')
plt.text(x=0.97, y=0.97, s="Kurtosis: %f" % train_data.SalePrice.kurtosis(),\
fontweight='demibold', fontsize=10, verticalalignment='top', horizontalalignment='right',backgroundcolor='white', color='xkcd:poo brown')
'438x19369332
像素的图像大小太大。每个方向上的值都必须小于2^16
'