In [1]:
import pandas as pd
In [2]:
df = pd.DataFrame({'a': [0.123456789], 'b': [0.987654321]})
In [3]:
df
Out[3]:
In [4]:
print(pd.options.display.precision)
In [5]:
%precision 3
Out[5]:
In [6]:
print(pd.options.display.precision)
In [7]:
df
Out[7]:
In [8]:
pd.options.display.precision = 3
In [9]:
df
Out[9]:
In [10]:
print(df)