Any way to hide or remove default numbers in st.table()

Trying to remove the numbers on the left side of the table. Thanks!

Duplicate of:

thank you!

1 Like

what is solution for this question?

Hi @pavan_kumar :wave:

The solution can be found in the following knowledge base article in Streamlit’s documentation: Hide row indices when displaying a dataframe - Streamlit Docs

Happy Streamlit-ing! :balloon:
Snehan

1 Like

I tried following the solution using a df but I am getting a space next to the first column. Any thoughts on how to fix it? @snehankekre @GokulNC
image

You may try this:
st.dataframe(df, use_container_width=True)

That’s not st.table though. st.dataframe has nasty, longstanding issue with flickering on mobile devices st.data_editor jitters on mobile/narrow layout (embedded doc example) · Issue #6900 · streamlit/streamlit · GitHub making it unusable in many cases and st.table could work there just fine.

It was quite easy in 1.28 but in 1.28.1 I can’t do it again.