Editing Data Tables to Always be the Right Height

Id like to edit the height aspect in a st.datatable to always be at the right height to display all my values, no matter how many entries are in the original data table. Is there a way to dynamically set the height to achieve this? I once had figured out an equation that used the length of the data frame to achieve this, but have forgotten it a long time ago.

Hi @CharlesRoss-MBakerIn

Perhaps you are referring to st.dataframe() and yes there are parameters that allows you to set the height and also width of the dataframe via the height and width parameters.

Docs page is at: Data elements - Streamlit Docs