title: Correlation dataframe into figure in pandas
body: <p>I calculate the correlation a <code>dataframe</code> with this code:</p>
  
  <pre><code>corr = df.corr()
  corr.style.background_gradient(cmap='coolwarm')
  </code></pre>
  
  <p>I got this result (screenshot):</p>
  
  <p><a href="https://i.stack.imgur.com/s7TXn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s7TXn.jpg" alt="enter image description here"></a></p>
  
  <p>However this result in table form not in figure. 
  how to transform into JPG or PNG of my correlation result?</p>