Now that you have a conceptual understanding of how to hide row indices, let's implement it in code!
Hide row indices with st.table
```python
import streamlit as st
import pandas as pd
import numpy as np
df = pd.DataFrame(
    np.random.randn(10, 5),
    columns=("col %d" % i for i in range(5)))
CSS to inject contained in a string
hide_table_row_index = """
            
            tbody th {display:none}
            .blank {display:none}
            
            """
Inject CSS with Markdown
st.markdown(hide_table_row_index, unsafe_allow_html=True)
Display a static table
st.table(df)
```
Hide row indices with st.dataframe
```python
import streamlit as st
import pandas as pd
import numpy as np
df = pd.DataFrame(
    np.random.randn(10, 5),
    columns=("col %d" % i for i in range(5)))
CSS to inject contained in a string
