title: Pandas DataFrames in reportlab
body: <p>I have a DataFrame, and want to output it to a pdf. I'm currently trying to use ReportLab for this, but it won't seem to work. I get an error here:</p>
  
  <pre><code>        mytable = Table(make_pivot_table(data, pivot_cols, column_order, 'criterion'))
  </code></pre>
  
  <p><code>make_pivot_table</code> just returns a pivot table using pandas <code>pivot_table</code> function.
  The error I get is </p>
  
  <pre><code>ValueError: &lt;Table@0x13D7D0F8 unknown rows x unknown cols&gt;... invalid data type
  </code></pre>
  
  <p>My questions are:</p>
  
  <ol>
  <li>Is there any way to make reportlab work with DataFrames?</li>
  <li>If not, what package can I use for the same purpose?</li>
  </ol>