St.dataframe shows empty rows

I’m trying to filter out the top 10 rows from a dataframe and print is using st.dataframe I end up getting the desired top 10 rows but it’s also accompanied by empty rows from the actual dataframe.

Code Snippet

st.dataframe(final_table.head(x),width=4000,height=8000)

That doesn’t come “from the actual dataframe”, it is just the way st.dataframe() fills the empty space.

Yeah, I realised. Works fine with st.table, but I do like the interactive ability of st.dataframe. Anything you suggest?

I don’t know why you see that as a problem or why you are using the height argument so I can’t advise you.

1 Like