Reputation: 437
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.
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
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