Streamlit and DataFrame Output - Options aren't showing up

I’m new to this streamlit

I’m trying to display DataFrames and I set the options for max and min rows and columns and the results aren’t reflecting the options I selected.

Here’'s a code snippet

pd.set_option(‘display.max_columns’, 12)
pd.set_option(‘display.min_rows’, 20)
pd.set_option(‘display.max_rows’, 50)


result_dataFrame = pd.read_sql(query, mydb)

st.title(‘BDK Services Group’)

Any help would be most welcome.

Hi @HarryMelamed

You can set the width and height of a dataframe via the st.dataframe() method by defining the height and width parameters.

The Docs page has further details:

Hope this helps!

this didn’t work

It seems there is a max size for these streamlit DF

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