Tshering Tashi
Tshering Tashi

Reputation: 27

adjust the width of table column in streamlit

I have a table below in streamlit.

COLUMN1 COLUMN2
aaaaaaaaaaaaaa b

I wanted to reduce the column width of column1.

Upvotes: 1

Views: 18834

Answers (1)

RoseGod
RoseGod

Reputation: 1234

This is an open feature request on Streamlit you can see the issue in their github Ability to set dataframe column width #371

A workaround is to use a component for displaying Dataframes called streamlit-aggrid. Column width can be manually configured by dragging the column header on the front end.

Upvotes: 2

Related Questions