title: Save pandas table (filled with strings) as png
body: <p>This is my code:</p>
  
  <pre><code>column1 = ['Measured Set', '1. set', '2. set', '3. set']
  column2= ['Breached parameter (number of breaches, %)' ]
  column3 = ['Breached parameter (number of breaches, %)']
  
  for j in range(NOT):
      column2.append(report_str[0][j])
      column3.append(report_str[1][j])
  
  data = {
      'Sensor': column1,
      'Sensor 1': column2,
      'Sensor 2': column3,
  }
  
  df = pd.DataFrame(data)
  df
  </code></pre>
  
  <p><code>report_str</code> is a list, filled with strings from which I copy certain strings into the table. </p>
  
  <p>I tried this to save the table with this code: </p>
  
  <pre><code>ax = df.plot()
  fig = ax.get_figure()
  fig.savefig('asdf.png')
  </code></pre>
  
  <p>But I get an error: "Empty 'DataFrame': no numeric data to plot".</p>
  
  <p>This is my output table that I want to save:
  <a href="https://i.stack.imgur.com/3I6vX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3I6vX.png" alt="enter image description here"></a></p>
  
  <p>Could anyone help me with this issue?</p>