Is it possible to display pandas styles in the IPython console?
问题 Is it possible to display pandas styles in an iPython console? The following code in a Jupyter notebook import pandas as pd import numpy as np np.random.seed(24) df = pd.DataFrame({'A': np.linspace(1, 10, 5)}) df = pd.concat([df, pd.DataFrame(np.random.randn(5, 1), columns=list('B'))], axis=1) df.style.format({'B': "{:.2%}"}) correctly produces In the console I only get In [294]: df.style.format({'B': "{:.2%}"}) Out[294]: <pandas.io.formats.style.Styler at 0x22f3f4fe780> Is it possible to