Pandas

Doctests

When doctesting pandas code, it’s quite useful to be able to force pandas to print a dataframe in full without omitting or wrapping columns. This can be by setting the following options

import pandas as pd

pd.set_option('display.width', 0)
pd.set_option('display.max_columns', None)