0

Whenever I print a pandas dataframe in Jupyter Notebook, I get an basic unformatted row-by-column list:

Current dataframe output in Jupyter:

enter image description here

However, I understood that the default behavior is to output dataframes in a more stylized object with gridlines:

Desired dataframe styling in Jupyter:

enter image description here

What do I need to do so that dataframes are printed as they are stylistically in the second example?

bibi
  • 3,671
  • 5
  • 34
  • 50
SD7Codr
  • 11
  • 2
  • 3
  • Try without using the `print` function. – David Arenburg Sep 17 '16 at 20:11
  • 1
    This question is answered [http://stackoverflow.com/questions/26873127/print-dataframe-as-table-in-ipython-notebook](http://stackoverflow.com/questions/26873127/print-dataframe-as-table-in-ipython-notebook). In short, use the *display* method from IPython.display method. – shawnheide Sep 17 '16 at 20:22

0 Answers0