[IPython-dev] How to display really long strings?

William Furnass will at thearete.co.uk
Thu Jul 17 07:50:26 EDT 2014


> ---------- Forwarded message ----------
> From: Anders Schneiderman <ASchneiderman at asha.org>
> To: "ipython-dev at scipy.org" <ipython-dev at scipy.org>
> Cc:
> Date: Tue, 15 Jul 2014 11:18:48 -0400
> Subject: [IPython-dev] How to display really long strings?
>
> I need to do a series of transformations to a column in a pandas data frame that contains very long strings. When I try to display the column via head, etc, IPython Notebook truncates it - a totally understandable approach for most long strings, but it means I can't see whether the transformations were done properly. Any thoughts about a one-off workaround? I took a look at the documentation but couldn't figure out how to do it.

Have you tried changing the following pandas output display options?

pandas.set_option('display.width', 1000)
pandas.set_option('display.max_colwidth', 100)

Regards,

Will



More information about the IPython-dev mailing list