Is it possible to export a Pandas dataframe as an image file? Something like df.to_png()
or df.to_table().savefig('table.png')
.
At the moment I export a dataframe using df.to_csv()
. I then open this csv file in Excel to make the data look pretty and then copy / paste the Excel table into Powerpoint as an image. I see matplotlib has a .table()
method, but I'm having trouble getting it to work with my df.
The data frame I'm using has 5 columns and 5 rows and each 'cell' is a number.
from Export a Pandas dataframe as a table image
No comments:
Post a Comment