title: Making a table in python
body: <p>I'm trying to make a table in python which I can put into a report I'm writing in LaTeX . I've tried to use matplotlib to do this but I get the following...<img src="https://i.stack.imgur.com/wUSQj.png" alt="enter image description here"></p>
  
  <p>If anyone has any idea how I can fix my code, or if theres a better approach I'd be grateful. Here's the code I'm using to generate this:</p>
  
  <pre><code>columns=('Temporary ID','ID')
  tabledata=[]
  for i in range(0,len(ID_mod)):
      tabledata.append([ID_mod[i],sort_ID2[i]])
  plt.figure()
  plt.table(cellText=tabledata,colLabels=columns)
  plt.savefig('table.png')
  </code></pre>