dataframe画图

import matplotlib.pyplot as plt

新老分数的密度图

data_score = data[['old_score','new_score']]

data_score.plot(kind="kde",color=['lightcoral','lightslategrey'],lw=3)

plt.tight_layout()
plt.savefig("old_score、new_score的核密度图",dpi=300)

import seaborn as sns

sns.displot(data_score_cha)

https://blog.51cto.com/u_14346314/5615499

posted @ 2022-11-04 15:34  Marklong  阅读(65)  评论(0编辑  收藏  举报