I have this excel file which contains interview answers, a lot of them, where every row is one interview. I want an easy way to display each row, perhaps in a popup window so I won’t have to play with the row and column sizes each time I review answers. Currently I’m using a pandas DataFrame to get all the data from the file Does anybody know some library or way to display these things (before I burn my eyes looking at this excel file ) Thank you
Example for the excel
| Interviewee| Question 1 | | ------———— | ------—————————————- | | John | a really long answer| | Dell | a really short answer|
I guess the simplest would be to use
DataFrame.to_html()from Pandas, to convert the table into an HTML formatted table (check out the documentation to see settings of this command). The provided HTML you can save as a file and open with a browser or visualize the HTML in Jupyter or any other library.There's also
DataFrame.to_markdown()Or you can use this answer to generate a PDF file
This outputs this HTML
Which after viewing in browser looks like this