How to get a readable text copy of a dataframe using Python?
Converting it to Excel and printing would be an option.
pd.to_excel()
Suppose I have a dataframe and I want to print it using a printer or get a hard copy of a dataframe. I have almost 30 columns and hundreds of rows in that dataframe. I just want to get a printed copy of it in any format.
I tried making a PDF of it and then press Ctrl+P but the dataframe values were not readable. Same with HTML too. I just want the data to be readable. How can I do so?
I am creating an application for those people who are not really familiar with using computers. So I hope for a simple and easy answer.
I already understand that I could use to_excel and to_csv. However, then the user would have to open an Excel file and click on print. I would like it to be more simple and easy for use than that.