sammy
sammy

Reputation: 437

How to display full column name in dataframe while using streamlit

I'm new to streamlit and trying to display a dataframe.

The problem is that some column names are not fully displayed because of the value of the item is short.

enter image description here

above is an example picture.

the second column is shortened. I'm able to manually stretch the column, though I want to know if it's possible automatically.

Is there a way to display the full column name?

Upvotes: 3

Views: 2304

Answers (1)

Jamiu S.
Jamiu S.

Reputation: 5723

You can use streamlit AgGrid Component to fix that problem. AgGrid() by default will will take care of that.

In case you want to know more about AgrGrid visit streamlit AgGrid Component.

Installation: pip install streamlit-aggrid

from st_aggrid import AgGrid

AgGrid(df)

Upvotes: 0

Related Questions