I did find a "workaround." That was to set options.display.notebook_repr_html to False. This gets rid of the nice HTML table formatting in a notebook, but also fixes the precision problem. So presumably this means that the issue with the notebook_repr_html option, and this is a Pandas issue and not a jupyter issue.
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/48efdc76-2e52-4c85-8116-93d8daca8026%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
