before I use
pd.set_option('expand_frame_repr', False)
the pandas output in pycharm console is up/down alignment in rows: alignment in rows
I want to see all of the dataframe columns, so I typed:
pd.set_option('expand_frame_repr', True)
but after this, the output of the dataframe in pycharm console is not up/down alignment in rows, it appears as this: dataframe in pycharm console is not up/down alignment in rows
the output is so terrible because the pandas dataframe is not alignment in rows, So how can I do to make the rows alignment again?
I was facing the same issue and just found out a way to solve it.
It is pretty straight forward, you need to uncheck the Use Soft Wraps button next to the Run Terminal in Pycharm. The button can be found here :
Below are two screenshots, one with the button checked and one without, we can then see that it corrects the issue!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.