Sometimes it can be annoying that the default display.width (aka line_width, but deprecated) is too narrow to display the entire dataframe clearly when using pandas in iPython, so do this in iPython:

import pandas as pd
pd.set_option('display.width', 200)

If each column is narrow, but you have quite a number of columns and would like to show them on one line, then do this:

pd.set_option('max_columns', 20)

Similarly, you can set the number of rows to display (esp. in Jupyter Notebook),

pd.set_option('max_rows', 1000)

If you don’t have many columns, and want each column to a bigger width,

pd.set_option('display.max_colwidth', 300)

If you don’t want long string omitted in a notebook cell in Jupyter,

# Don't cut off long string
# http://stackoverflow.com/questions/26277757/pandas-to-html-truncates-string-contents
pd.set_option('display.max_colwidth', -1)