I have a dataframe from which I want to extract subtables and print them to a pdf. I want to have headers above each one, something like this:
<insert Heading 1>
<insert PDF 1>
<insert Heading 2>
<insert PDF 2>
At the moment I can pull out a table and write it to PDF using matplotlib.backends.backend_pdf.PdfPages
and matplotlib.pyplot
.
But this only seems to allow one table per figure. Is there a way to format the way achieve the above?
Thanks