If you want to change the display in the Jupyter Notebook, you can use the Style function . To use this formatting only for some columns, just specify the columns (columns) to enlarge using the parameter subset
. This is mainly HTML and CSS.
df = DataFrame({'text': ['foo foo foo foo foo foo foo foo', 'bar bar bar bar bar'],
'number': [1, 2]})
df.style.set_properties(subset=['text'], **{'width': '300px'})
