Skip to content

Fix table edits with dataframe indexes#2883

Open
xujiantop-crypto wants to merge 1 commit into
Avaiga:developfrom
xujiantop-crypto:fix/table-edit-index
Open

Fix table edits with dataframe indexes#2883
xujiantop-crypto wants to merge 1 commit into
Avaiga:developfrom
xujiantop-crypto:fix/table-edit-index

Conversation

@xujiantop-crypto

Copy link
Copy Markdown

What changed

This fixes #2747 by allowing table edit/delete callbacks to use the dataframe index value returned by the frontend instead of requiring it to be numeric.

Dataframes with non-default indexes can now update or delete the selected row through the existing pandas index path, while the previous numeric-index behavior is preserved.

Tests

  • python -m ruff check taipy/gui/data/pandas_data_accessor.py tests/gui/data/test_pandas_data_accessor.py
  • git diff --check

I also tried python -m pytest tests/gui/data/test_pandas_data_accessor.py -q, but this local machine only has Python 3.14 while the project declares requires-python = ">=3.9,<3.13"; the test run stopped during import in SQLAlchemy before reaching these tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 BUG] Default table "editable" behaviour broken when df has index

1 participant