In some cases, the dataframe's horizontal scroll bar doesn't work. Here's a minimal example:

import pandas as pd
import streamlit as st
df = pd.DataFrame(
{"c": [10, 10]},
index=[
"Lorem ipsum dolor",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.",
],
)
c1, _ = st.columns(2)
c1.dataframe(df, width="content")
Debug info
- Streamlit version: 1.56.0
- Python version: 3.14.3
- Operating System: Windows 11
- Browser: Chrome
In some cases, the dataframe's horizontal scroll bar doesn't work. Here's a minimal example:
Debug info