Is there anyway to use st.data_editor and make the height in a way that it gets f

Is there any way to use st.data_editor and make the height in a way that it displays the entire dataframe with all the rows?

 st.data_editor(
                positions_data.reset_index(drop=True),
                disabled=True,  # Disabling editing for the entire table
                hide_index=True,
                height=len(positions_data.reset_index(drop=True)) * 36# Adjusting height
            )

I did this after lots of adjusting but it is dynamic is some way when the number of rows get changed.

I settled at

height=int((len(positions_data.reset_index(drop=True))+1) * 35.5)

Almost working.

1 Like

Thank you I was looking for this

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.