Checklist
Summary
Adding rows to data_editor and then clicking "show/hide columns" and then selecting "(index)" causes "This error should never happen. Please report this bug. No cell found for an added row: col=0; row=0"
Reproducible Code Example
import streamlit as st
import pandas as pd
df = pd.DataFrame(columns=['foo1', 'foo2', 'foo3'])
edited_Foobar = st.data_editor(
df,
num_rows='dynamic'
)
Steps To Reproduce
- run the app.
- add one or more rows to the table by clicking the "+" sign in any cell
- click the show/hide columns eyeball above the top right corner of the table
- select "(Index)"
Expected Behavior
A new column appears with the header "Index", the cells of which have the correctly assigned indices as represented in the dataframe returned by the data_editor widget.
Current Behavior
A new column appears with a blank header and the contents of the cells of which read "Error during cell creation" with the tooltip "This error should never happen. Please report this bug. No cell found for an added row: col=0; row=0"
Is this a regression?
Debug info
- Streamlit version: 1.53.1
- Python version: 3.14.2
- Operating System: Windows 11 Pro 24H2
- Browser: Chrome
Additional Information

Checklist
Summary
Adding rows to data_editor and then clicking "show/hide columns" and then selecting "(index)" causes "This error should never happen. Please report this bug. No cell found for an added row: col=0; row=0"
Reproducible Code Example
Steps To Reproduce
Expected Behavior
A new column appears with the header "Index", the cells of which have the correctly assigned indices as represented in the dataframe returned by the data_editor widget.
Current Behavior
A new column appears with a blank header and the contents of the cells of which read "Error during cell creation" with the tooltip "This error should never happen. Please report this bug. No cell found for an added row: col=0; row=0"
Is this a regression?
Debug info
Additional Information