Summary
I’m trying to use the function use_container_width = True so that my dataframe will take up the entire width of the page.
Steps to reproduce
Code snippet:
df2 = pd.DataFrame(table)
st.dataframe(df2)
It should reproduce the dataframe and have it take up the entire width of the page.
Instead I get this error:
TypeError: dataframe() got an unexpected keyword argument ‘use_container_width’
What unusual is that the use_container_width function works for my plotly graph as this code:
st.plotly_chart(fig, use_container_width=True)
doesn’t result in any error.