Skip to content Skip to sidebar Skip to footer

Ipython Notebook Not Printing Dataframe As Table

I'm trying to print a df in ipython notebook but it doesn't print it as a table. data = {'year': [2010, 2011, 2012, 2011, 2012, 2010, 2011, 2012], 'team': ['Bears', 'Bears

Solution 1:

set_printoptions has been replaced by set_options in the more recent versions of pandas, try to use:

pandas.set_option('display.notebook_repr_html', True)

Also do not use print, simply state football or display(football) in the last line of a notebook cell.

Post a Comment for "Ipython Notebook Not Printing Dataframe As Table"