Can I set variable column widths in pandas?
<p>I've got several columns with long strings of text in a pandas data frame, but am only interested in examining one of them. Is there a way to use something along the lines of <code>pd.set_option('max_colwidth', 60)</code> but for a <strong>single column</strong> only, rather than expanding the width of all the columns in my df?</p>

<p>If you want to change the display in a Jupyter Notebook, you can use the <a href="http://pandas.pydata.org/pandas-docs/stable/style.html" rel="nofollow">Style</a> feature. 
To use this formatting for only some columns simply indicate the column(s) to enlarge thanks to the <code>subset</code> parameter. This is basically HTML and CSS.</p>

<pre><code>### Test data
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'})
</code></pre>

<p><a href="http://i.stack.imgur.com/75CvJ.png" rel="nofollow"><img src="http://i.stack.imgur.com/75CvJ.png" alt="enter image description here"></a></p>

python pandas