How to fix matplotlib's subplots when the entire layout can not be filled?
<p>I would like to plot a DataFrame with say 29 columns, so I use the matplotlib's "subplots" command using 5x6 layout, (5x6 = 30 > 29)</p>

<p>fig, ax = plt.subplots(5,6)</p>

<p>However, when I plot all of the columns, the last subplot (i.e., row=5, col = 6) is empty because there is no data to show there. Is there a way to remove that last subplot?</p>

<p>Try this</p>

<pre><code>fig.delaxes(axs[5,6]) 
plt.show()
</code></pre>

python pandas matplotlib