Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.

Debugging

jtpavlock edited this page Jul 15, 2020 · 1 revision

To see the output of a large pandas dataframe, it is useful to convert it to html and display via a webrowser.

To save a pandas dataframe to a file as html:

players = pd.DataFrame()
with open('tmp_html', 'w') as tmp_file:
    tmp_file.write(players.to_html())

Then you can open the html file with $ firefox tmp_file

Clone this wiki locally