pythonpycharmstatsmodelssummarylinearmodels

Pycharm Python Console regression output not aligned


I am relatively new to Python and Pycharm, so I don't know if it is a silly question. Suddenly I got a strange problem: the summary output from any kind of regression in python console is not correctly aligned but, if I run the script from terminal, it is perfectly aligned. Some days ago it worked well but now I have this problem with linearmodels and statsmodels. If you could help me, I'd be very happy, because it's not easy to read it.

This is an example of code that generates the problem.

import statsmodels.api as sts
mod = sts.tsa.AutoReg(rt, 1)
res = mod.fit()
print(res.summary())

Following, the screenshots.

Python console Terminal


Solution

  • The issue is that the console is not using a monospace font. Select a monospace font for it, like Courier.