Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dask Dataframe View Entire Row

I want to see the entire row for a dask dataframe without the fields being cutoff, in pandas the command is pd.set_option('display.max_colwidth', -1), is there an equivalent for dask? I was not able to find anything.

like image 972
Maria Nazari Avatar asked Sep 06 '25 13:09

Maria Nazari


1 Answers

You can import pandas and use pd.set_option() and Dask will respect pandas' settings.

import pandas as pd

# Don't truncate text fields in the display
pd.set_option("display.max_colwidth", -1)

dd.head()

And you should see the long columns. It 'just works.'

like image 67
rjurney Avatar answered Sep 10 '25 01:09

rjurney