What is the easiest way to get subplots of missingno via msno.matrix()
for df1 , df2, df3 . I already checked this issue and below solution didn't work due to TypeError
'AxesSubplot' object does not support indexing
and updated pandas and missingno based on that issue.
fig = msno.matrix(df)
grid_ax = fig.axes[0]
my_subplots = plt.subplots(2, 2)
my_subplots[0][0] = grid_ax
I used below snippet but was unsuccessful. I don't know how shuold I returen the ax
:
#Set up the figure
fig, ax = plt.subplots(nrows=1, ncols=2 , figsize=(8,8) , squeeze=False)
plt.subplot(131)
msno.matrix(df1)
plt.subplot(132)
msno.matrix(df2)
plt.subplot(133)
msno.matrix(df3)
plt.savefig('comparison.png')
#plt.tight_layout()
plt.show()
Please leave a general solution we can just by replacing different df we can use it. Have a nice evening