'How to save table in python?

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



Solution 1:[1]

Use tabulate, the documentation can be found here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gaurav Dhama