Add a column to st.dataframe or st.data_editor with a button for each row

Hello everyone!

I have a dataframe just like the following:


I would like to add a column (just like is_widget) where one button for each row, and when its get clicked, it just performs a action (i was thinking about changing tabs, but guess that this is not possible) that saves the ‘command’ and ‘rating’ values for the row clicked and then shows a forms instead of the dataframe. Is that possible? Or it does not need to be a button, at least an arrow that when its clicked (like show/hide, actually that would be even greater than the button thing), it opens a drop down section where you can fill some info regardind the row clicked.

Any tips on how to solve it?
Thanks in advance!

1 Like