Getting wider output in PyCharm’s built-in console

For me, just setting 'display.width' wasn’t enough in pycharm, it kept displaying in truncated form.

However, adding the option pd.set_option("display.max_columns", 10) together with display width worked and I was able to see the whole dataframe printed in the “run” output.

In summary:

import pandas as pd    
pd.set_option('display.width', 400)
pd.set_option('display.max_columns', 10)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)