1

I am trying to get a table with data saved in svg, pdf or png file. Are there any libraries to do it?

I've tried pygal, but it seems that they provide only charts saving.

Edited: This table is just a couple of arrays with data, and I need to build a nice table from them

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
dmitrius
  • 11
  • 1
  • 1
  • 5
  • Is it a python table (list)? Or a html table? Please tell us something more so we can help you... – Jacques de Hooge Aug 04 '16 at 09:51
  • You need to be more specific. How are you storing things in this table? Is it a list of lists? And why do you want to turn it into an image? Why not save it as a CSV file? – Gillespie Sep 25 '16 at 21:54
  • According to [docs](https://www.pygal.org/en/stable/documentation/table.html), "pygal also supports a html table export of given data using the render_table option". – bfris Dec 02 '22 at 20:16

1 Answers1

0

Use tabulate, the documentation can be found here

Gaurav Dhama
  • 1,346
  • 8
  • 19