1

I found a very similar question but the solution did not work on Google colab. I would like to see better the text in my pandas dataframes columns. Right now the default width seems 50%.

from IPython.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))
display(HTML("<style>.output_result { max-width:100% !important; }</style>"))

As an alternative, I found an extension called Data Tables. This may be the best solution available today for it but seems to only works for tables.

from google.colab import data_table
data_table.enable_dataframe_formatter()
G. Macia
  • 1,204
  • 3
  • 23
  • 38

1 Answers1

2

Was able to increase pandas display output in Colab using:

import pandas as pd

pd.set_option('display.width', 180)
Samball
  • 623
  • 7
  • 22
gene
  • 21
  • 1