[Django]-How to stop my pandas data table from being truncated when printed?

43👍

You can set options on how to display your dataframes:

pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 150)

If you add this before you print anything, your dataframe will be printed in the format you’d expect

👤Jeroen

Leave a comment