Hide row indices when displaying a dataframe in Streamlit v1.16.0

We released a lot of new configuration options for st.dataframe and st.data_editor in 1.23. This also includes the hide_index parameter that lets you easily hide the index:

import streamlit as st
import pandas as pd

df = pd.DataFrame({'A':[1,2,3],'B':['a','b','c']})
st.dataframe(df, hide_index=True)

6 Likes