Reputation: 690
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.
Upvotes: 4
Views: 3863
Reputation: 5140
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.'
Upvotes: 2
Reputation: 28673
Dask does not normally display the data in a dataframe at all, because it represents lazily-evaluated values. You may want to get a specific row by index, using the .loc
accessor (same as in Pandas, but only efficient if the index is known to be sorted).
If you meant to get the whole list of columns only, you can get this by the .columns
attribute.
Upvotes: 0