[ BUG] Default table "editable" behaviour broken when df has index
Author: arcanaxionCreated Oct 22, 2025Updated Aug 27, 2026
Labels🆘 Help wantedgood first issueGUI: Front-End
What went wrong?
Example code:
import pandas as pd
import taipy.gui.builder as tgb
from taipy.gui import Gui
df = pd.DataFrame({"A": ["a1", "a2", "a3"], "B": ["b1", "b2", "b3"]})
df.set_index("A", inplace=True)
with tgb.Page() as page:
tgb.table("{df}", editable=True)
if __name__ == "__main__":
gui = Gui(page=page)
gui.run(title="Default editable behaviour broken when dataframe has index")Delete and add print following warnings:
/project/.venv-4.1.0/lib/python3.10/site-packages/taipy/gui/gui.py:1794: TaipyGuiWarning: Gui.table_on_add() failed potentially from a table's on_add callback.:
can only concatenate str (not "int") to str
_warn("Gui.table_on_add() failed potentially from a table's on_add callback.", e)
/project/.venv-4.1.0/lib/python3.10/site-packages/taipy/gui/gui.py:1810: TaipyGuiWarning: Gui.table_on_delete() failed potentially from a table's on_delete callback.:
'[0] not found in axis'
_warn("Gui.table_on_delete() failed potentially from a table's on_delete callback.", e)Edit doesn't modify the edited cell and instead appends a new row
Taipy Version
4.1
Additional Context (Optional)
Code of Conduct
- I have checked the existing issues to avoid duplicates.
- I am willing to work on this issue (optional)
✅ Acceptance Criteria
- A reproducible unit test is added.
- Code coverage is at least 90%.
- The bug reporter validated the fix.
- Relevant documentation updates or an issue created in
Source: Avaiga/taipy