Heat map subplots

I created subplots of heatmaps using plotly,

where groups 3, 5, 6, and 7 are data frames with nan values. The grids are not showing and also the y axis values are missing for group 5. This only happens when a data frame has only nan values, replacing it with 0 solves the problem. I do not want to replace the values with 0s, rather keep them as they are(nan in this case). Any idea how to solve this. Does plotly provides some other ways to handle this issue.