In Python E Jupyter Notebook, how to present a full screen record?

Asked

Viewed 33 times

1

I’m at Jupyter Notebook working with Python.

My columns are strings and very long, I need to see these complete on screen, how to do this?

The image of the dataframe with the "incomplete strings":

Imagem do dataframe

My wish is to have the following presentation:

filename

20181126100750UP5d4760ed369f42d5884bbdc47b4b9ee2.pdf

1 answer

0


According to the documentation you can set this using max_colwidth.

pd.set_option("max_colwidth", 40)

       0    1       2                          3
0    foo  bar     bim  uncomfortably long string
1  horse  cow  banana                      apple

Setting a lower value

 pd.set_option("max_colwidth", 6)

       0    1      2      3
0    foo  bar    bim  un...
1  horse  cow  ba...  apple

If you don’t want to set a limit use None: pd.set_option("max_colwidth", None)

For more information on options that can be used.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.