'What is the Python equivalent of R function gg_miss_fct?
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
Solution 1:[1]
using pandas and seaborn you can do it like this, where data is a pandas dataframe.
plt.figure(figsize=(10,6))
sns.heatmap(data.isna().transpose(),
cmap="YlGnBu",
cbar_kws={'label': 'Missing Data'})
plt.show()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Love Eklund |
