I'm relatively new to using the PyCharm IDE, and have been unable to find a way to better shape the output when in a built-in console session. I'm typically working with pretty wide dataframes, that would fit easily across my monitor, but the display is cutting and wrapping them much sooner than needed.
Does anyone know of a setting to change this behavior to take advantage of the full width of my screen?
Edit: I don't have enough reputation to post a screenshot, but link is below: http://imgur.com/iiBK3iU
I would like to prevent it from wrapping after only a few columns (for example, the column 'ReadmitRate' should be immediately to the right of 'SNFDaysPerSNFCase')
It appears I was mistaken in thinking that the issue was one in PyCharm (that could be solved, for example, in a setting or preference.) It actually has to do with the console session itself. The console attempts to auto-detect the width of the display area, but when that fails it defaults to 80 characters. This behavior can be overridden with:
import pandas as pd desired_width = 320 pd.set_option('display.width', desired_width)
Where you can of course set the desired_width
to whatever your display will tolerate. Thanks to @TidB for the suggestion that my initial concern wasn't focused in the right area.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With