在r中,gg_miss_fct通过一个热图获得缺少的值百分比,我该如何等效地获得python?
In R, gg_miss_fct get missing value percentage with one heatmap, how can I get that in equivalent for python?enter image description here
使用pandas和seaborn你可以这样做,其中数据是pandas数据框。
plt.figure(figsize=(10,6)) sns.heatmap(data.isna().transpose(), cmap="YlGnBu", cbar_kws={'label': 'Missing Data'}) plt.show()
using pandas and seaborn you can do it like this, where data is a pandas dataframe.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
使用pandas和seaborn你可以这样做,其中数据是pandas数据框。
using pandas and seaborn you can do it like this, where data is a pandas dataframe.