title: Plot table and display Pandas Dataframe
body: <p>I want to display my Pandas dataframe on screen in a tabular format:</p>
  
  <pre><code>df = pd.DataFrame({'apples': 10, 'bananas': 15, 'pears': 5}, [0])
  </code></pre>
  
  <p>I'm not sure how to do so. I know that pd.DataFrame.plot() has some options to display a table, but only along with the graph. I just want to display the table (i.e. dataframe) on screen. Thanks!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Here's a screenshot of creating a table using pandas plot function. I only want the bottom table portion however, not the graph. I also want a popup of the table figure.</p>
  
  <p><img src="https://i.stack.imgur.com/IPCPN.gif" alt="plotting tables"></p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <p>I managed to display my dataframe on the figure with the following:</p>
  
  <pre><code>plt.figure()
  y = [0]
  plt.table(cellText=[10, 15, 5], rowLabels=[0], columnLabels=['apple', 'bananas', 'pears'], loc='center')
  plt.axis('off')
  plt.plot(y)
  plt.show()
  </code></pre>
  
  <p>This will display just the table without any of the axes. I don't know if this is the best way to go about it, so any suggestions would be appreciated. Also, is there a way to add a title to this table? The only way I know would be to use plt.text and place the text (title of the table) within the figure, but then I would have to keep the axes...Any ideas?</p>