To give a little more context; it appears that a MultiIndex works fine.  So 
the following works just fine:

import pandas as pd
import numpy as np
pd.options.display.precision = 3
labels = pd.MultiIndex.from_arrays((np.random.rand(10),np.random.rand(10)))
p = pd.DataFrame(np.random.randn(10,10),index=labels,columns=labels)
p


So it appears to me that it's only a straight forward float index for 
columns that doesn't work.  Am I just missing something obvious?

On Wednesday, August 16, 2017 at 7:21:14 PM UTC-7, Paul Blelloch wrote:
>
> I'm finding that when I have a pandas DataFrame with float column headers, 
> they don't honor the display.precision option (or display.float_format or 
> set_eng_fload_format) in a jupyter notebook, while they do in an iPython 
> console.  The following is a snippet of code that illustrates the issue:
>
> import pandas as pd
> import numpy as np
> pd.options.display.precision = 3
> labels = np.random.rand(10)
> p = pd.DataFrame(np.random.randn(10,10),index=labels,columns=labels)
> p
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/292bf2a1-c30e-4646-bd0d-d52ed8c3430d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to