import seaborn as sns
import matplotlib.pyplot as plt
for i in train.columns:
try:
g = sns.kdeplot(train[i], color="Red", shade = True)
g = sns.kdeplot(test[i], ax =g, color="Blue", shade= True)
g.set_xlabel(i)
g.set_ylabel("Frequency")
g = g.legend(["train","test"])
plt.show()
except:
print(i)
数据挖掘-绘制分布图
最新推荐文章于 2024-03-02 19:51:05 发布