Can I create a table with dropdown menu as rows

Is it possible to generate a Table Structure with dropdown menus in some columns as shown below:

Col1 Col2 Col3
Data1 Dropdown1 Dropdown2
Data2 Dropdown1 Dropdown2
.
.
.
DataN Dropdown1 Dropdown2

Then a Submit Button
which will submit the data of above table to a pandas dataframe.

I am thinking something of a code like
data = [‘Data1’, ‘Data2’, …,‘DataN’]
for d in data:
generate table(d, st.selectbox(1), st.selectbox(2))

1 Like

Hi @sagnik.pal,

Right now that’s not supported in Streamlit, so I went ahead and created a feature request on GitHub (https://github.com/streamlit/streamlit/issues/1198). You can help design this feature or follow its progress over there.

And thanks for using Streamlit!

1 Like