how can i store my data in a table and then convert to pdf ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can i store my data in a table and then convert to pdf ??

i tried matplotlib but i think there is a better way

3rd Feb 2021, 7:27 AM
Hassan
1 Answer
0
I have never tried it myself, but you can convert your dataframe to html using df.to_html() and then convert this html to pdf using special library pdfkit and its function from_file.
3rd Feb 2021, 2:07 PM
Михаил Иванов
Михаил Иванов - avatar