import missingno as msno
msno.matrix(df)
# save figure for book
f = msno.matrix(df, figsize=(5.5, 5.5))
f.patch.set_facecolor('w') # sets background color behind axis labels
f2 = f.get_figure()
f2.savefig('B17030_05_13.png', bbox_inches='tight', dpi=300)
# plt.tight_layout(rect=(0.5, 0, 1, 1.5)) # auto-adjust margins
No comments:
Post a Comment