Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for non-string column names in st.data_editor #7485

Merged
merged 11 commits into from Oct 4, 2023

Conversation

LukasMasuch
Copy link
Collaborator

@LukasMasuch LukasMasuch commented Oct 3, 2023

Describe your changes

Support non-string column names in st.data_editor by automatically converting them to string.

This PR also migrates the st_data_editor_input_data.py e2e test to playwright.

GitHub Issue Link (if applicable)

Testing Plan

  • Added unit test

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@LukasMasuch LukasMasuch changed the title Fix non-string column names with st.data_editor Support for non-string column names in st.data_editor Oct 4, 2023
@LukasMasuch LukasMasuch merged commit c9af91b into develop Oct 4, 2023
50 checks passed
@LukasMasuch LukasMasuch deleted the fix/non-string-column-names branch October 4, 2023 22:51
eric-skydio pushed a commit to eric-skydio/streamlit that referenced this pull request Dec 20, 2023
* Fix non-string column names with data editor

* Fix test

* Apply additional fixes

* Change back

* Put into function

* Fix stringifying headers

* Migrate data editor input data test to playwright

* Update snapshots

* Add unit test to check column names

* Clean test script
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Mar 22, 2024
* Fix non-string column names with data editor

* Fix test

* Apply additional fixes

* Change back

* Put into function

* Fix stringifying headers

* Migrate data editor input data test to playwright

* Update snapshots

* Add unit test to check column names

* Clean test script
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
* Fix non-string column names with data editor

* Fix test

* Apply additional fixes

* Change back

* Put into function

* Fix stringifying headers

* Migrate data editor input data test to playwright

* Update snapshots

* Add unit test to check column names

* Clean test script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editing st.data_editor values whose column names are int/float leads to KeyError: 'colname'
2 participants