# \#data\_editor

**URL:** https://discuss.streamlit.io/tag/data-editor/154.md

[Latest](https://discuss.streamlit.io/latest.md) · [Categories](https://discuss.streamlit.io/categories.md) · [Tags](https://discuss.streamlit.io/tags.md)

---

## [How to style editable columns in st.data\_editor using pandas Styler or column\_config?](https://discuss.streamlit.io/t/how-to-style-editable-columns-in-st-data-editor-using-pandas-styler-or-column-config/119583)

<div class="topic-metadata">

**Author:** [@prashant12](https://discuss.streamlit.io/u/prashant12)\
**Replies:** 4\
**Last updated:** [February 24, 2026, 12:44pm UTC](https://discuss.streamlit.io/t/how-to-style-editable-columns-in-st-data-editor-using-pandas-styler-or-column-config/119583 "2026-02-24T12:44:14Z")

</div>

Hey guys, I’m trying to display a DataFrame in Streamlit using st.data\_editor, where: Some columns are editable (e.g., Proposed Price) Some columns are non-editable (e.g., Brand, Current Price, Price Change %) I want …

---

## [Hide columns while displaying dataframe using st.data\_editor()](https://discuss.streamlit.io/t/hide-columns-while-displaying-dataframe-using-st-data-editor/120568)

<div class="topic-metadata">

**Author:** [@Shubham36](https://discuss.streamlit.io/u/Shubham36)\
**Replies:** 1\
**Last updated:** [January 16, 2026, 7:49pm UTC](https://discuss.streamlit.io/t/hide-columns-while-displaying-dataframe-using-st-data-editor/120568 "2026-01-16T19:49:45Z")

</div>

Why isn’t there any feature to pass columns as an argument in st.data\_editor() so that they can be hidden in the dataframe to be displayed in the app UI, but still be present in the underlying dataframe in memory? My cu…

---

## [How can I increase the overall width of my data\_editor table?](https://discuss.streamlit.io/t/how-can-i-increase-the-overall-width-of-my-data-editor-table/120539)

<div class="topic-metadata">

**Author:** [@Vincente33](https://discuss.streamlit.io/u/Vincente33)\
**Replies:** 1\
**Last updated:** [January 12, 2026, 6:21pm UTC](https://discuss.streamlit.io/t/how-can-i-increase-the-overall-width-of-my-data-editor-table/120539 "2026-01-12T18:21:23Z")

</div>

Hello everyone I'm coding my interface locally, and I want to increase the overall width of my data\_editor without having to use horizontal scrolling. However, it seems the \`width="content"\` parameter isn't working; the…

---

## [How can I trigger “Autosize (fit to content)” for st.data\_editor columns programmatically?](https://discuss.streamlit.io/t/how-can-i-trigger-autosize-fit-to-content-for-st-data-editor-columns-programmatically/120485)

<div class="topic-metadata">

**Author:** [@Rafael19](https://discuss.streamlit.io/u/Rafael19)\
**Replies:** 2\
**Last updated:** [January 7, 2026, 3:33am UTC](https://discuss.streamlit.io/t/how-can-i-trigger-autosize-fit-to-content-for-st-data-editor-columns-programmatically/120485 "2026-01-07T03:33:22Z")

</div>

Hi every1, I’m building a local Streamlit app that reads a PDF and displays the extracted transactions in a st.data\_editor table. The core issue is column width management: the table renders with column widths that are …

---

## [Creating dependent columns without reloading in data\_editor](https://discuss.streamlit.io/t/creating-dependent-columns-without-reloading-in-data-editor/120493)

<div class="topic-metadata">

**Author:** [@conor.hartnett](https://discuss.streamlit.io/u/conor.hartnett)\
**Replies:** 1\
**Last updated:** [January 6, 2026, 8:14pm UTC](https://discuss.streamlit.io/t/creating-dependent-columns-without-reloading-in-data-editor/120493 "2026-01-06T20:14:11Z")

</div>

Is it possible to have the one column change based on a change in the value of another column without ‘reloading’ the table/app? Or do we need to use a third party component and java script? For example, I am currently …

---

## [App test for st.data\_editor](https://discuss.streamlit.io/t/app-test-for-st-data-editor/119360)

<div class="topic-metadata">

**Author:** [@Vinh11](https://discuss.streamlit.io/u/Vinh11)\
**Replies:** 1\
**Last updated:** [January 5, 2026, 6:17pm UTC](https://discuss.streamlit.io/t/app-test-for-st-data-editor/119360 "2026-01-05T18:17:19Z")

</div>

Hi, is there any way to set value/add row/delete row for Data Editor widget in App test. This question has been asked a year ago, but I’ve not seen any new update. Does anyone know the status or request feature for this …

---

## [Data\_editor not changing cell the 1st time but only after the second time](https://discuss.streamlit.io/t/data-editor-not-changing-cell-the-1st-time-but-only-after-the-second-time/64894)

<div class="topic-metadata">

**Author:** [@Sim\_Romero](https://discuss.streamlit.io/u/Sim_Romero)\
**Replies:** 18\
**Last updated:** [November 21, 2025, 1:31pm UTC](https://discuss.streamlit.io/t/data-editor-not-changing-cell-the-1st-time-but-only-after-the-second-time/64894 "2025-11-21T13:31:48Z")

</div>

The problem seems to be common to those trying to use the data\_editor widget/tool – not getting the cell to change the 1st time but the second time it works. I have seen the responses to this but have not seen a solutio…

---

## [data\_editor in vertical orientation?](https://discuss.streamlit.io/t/data-editor-in-vertical-orientation/119680)

<div class="topic-metadata">

**Author:** [@rpgoldman](https://discuss.streamlit.io/u/rpgoldman)\
**Replies:** 1\
**Last updated:** [October 7, 2025, 12:09pm UTC](https://discuss.streamlit.io/t/data-editor-in-vertical-orientation/119680 "2025-10-07T12:09:09Z")

</div>

This is likely an oddball request, but I have a data frame that has many columns but few rows. If it’s possible, it would give a better UX if I could use the editor oriented with rows horizontally and columns vertically…

---

## [Feature request: Request to add a audio play option on a dataframes!](https://discuss.streamlit.io/t/feature-request-request-to-add-a-audio-play-option-on-a-dataframes/114252)

<div class="topic-metadata">

**Author:** [@thisisbhupendrasingh](https://discuss.streamlit.io/u/thisisbhupendrasingh)\
**Replies:** 3\
**Last updated:** [September 3, 2025, 3:56pm UTC](https://discuss.streamlit.io/t/feature-request-request-to-add-a-audio-play-option-on-a-dataframes/114252 "2025-09-03T15:56:08Z")

</div>

Dear Streamlit Team, Would it be possible to add an audio playback option within DataFrame cells? This feature would greatly assist in evaluating call or audio quality directly within the dataframe, which is essential f…

---

## [Editable DataFrame Issues](https://discuss.streamlit.io/t/editable-dataframe-issues/119083)

<div class="topic-metadata">

**Author:** [@Archana5](https://discuss.streamlit.io/u/Archana5)\
**Replies:** 1\
**Last updated:** [August 22, 2025, 6:54am UTC](https://discuss.streamlit.io/t/editable-dataframe-issues/119083 "2025-08-22T06:54:29Z")

</div>

I am trying to create an editable dataframe in my snowflake streamlit application. Every time I add a value in the table, it re-runs and the table scrolls to the top. I have to scroll all the way to the end to enter just…

---

## [How to set a NULL value in an update statement using streamlit data editor](https://discuss.streamlit.io/t/how-to-set-a-null-value-in-an-update-statement-using-streamlit-data-editor/118806)

<div class="topic-metadata">

**Author:** [@William\_Garrard](https://discuss.streamlit.io/u/William_Garrard)\
**Replies:** 2\
**Last updated:** [August 18, 2025, 1:21pm UTC](https://discuss.streamlit.io/t/how-to-set-a-null-value-in-an-update-statement-using-streamlit-data-editor/118806 "2025-08-18T13:21:14Z")

</div>

I am running Streamlit v 1.46.1 on Snowflake. I have a simple app that grabs the data in a table and displays it in a data editor widget. Most of the values in the table are NULL to begin with, except for one column wh…

---

## [Editable dataframe is misbehaving while editing and deleting the row](https://discuss.streamlit.io/t/editable-dataframe-is-misbehaving-while-editing-and-deleting-the-row/113299)

<div class="topic-metadata">

**Author:** [@niharikajois](https://discuss.streamlit.io/u/niharikajois)\
**Replies:** 0\
**Last updated:** [May 23, 2025, 6:16am UTC](https://discuss.streamlit.io/t/editable-dataframe-is-misbehaving-while-editing-and-deleting-the-row/113299 "2025-05-23T06:16:49Z")

</div>

Hello Streamlit community, I am working on a project that uses easyocr to detect the dimension from the CAD drawing and append those selected dimension to the editable dataframe. This app is running locally for now. Wh…

---

## [Dataframe copy and download disable option request](https://discuss.streamlit.io/t/dataframe-copy-and-download-disable-option-request/112048)

<div class="topic-metadata">

**Author:** [@thisisbhupendrasingh](https://discuss.streamlit.io/u/thisisbhupendrasingh)\
**Replies:** 0\
**Last updated:** [May 9, 2025, 7:08am UTC](https://discuss.streamlit.io/t/dataframe-copy-and-download-disable-option-request/112048 "2025-05-09T07:08:28Z")

</div>

Dear Streamlit Developer team, I have been a long user of Streamlit. I have seen it evolving and its really fantastic to work with streamlit. I have made multiple data apps for my company purely on Streamlit. But there …

---

## [Data Editor bug when used in a streamlit form](https://discuss.streamlit.io/t/data-editor-bug-when-used-in-a-streamlit-form/110490)

<div class="topic-metadata">

**Author:** [@Guillaume6](https://discuss.streamlit.io/u/Guillaume6)\
**Replies:** 0\
**Last updated:** [April 24, 2025, 6:01pm UTC](https://discuss.streamlit.io/t/data-editor-bug-when-used-in-a-streamlit-form/110490 "2025-04-24T18:01:16Z")

</div>

Hi! I wanted to use a data editor inside of a form but I am running into a bug. Here is a mock example of my code: df2 = pd.DataFrame(\[ {"ID": 1, "NAME": "Guillaume"}, {"ID": 2, "NAME": "Tim"}, {"ID": 3, …

---

## [How to correctly save data\_editor changes before button actions](https://discuss.streamlit.io/t/how-to-correctly-save-data-editor-changes-before-button-actions/108261)

<div class="topic-metadata">

**Author:** [@Nathan12](https://discuss.streamlit.io/u/Nathan12)\
**Replies:** 2\
**Last updated:** [April 16, 2025, 9:37am UTC](https://discuss.streamlit.io/t/how-to-correctly-save-data-editor-changes-before-button-actions/108261 "2025-04-16T09:37:48Z")

</div>

Hello Streamlit community, I’m facing a challenging issue with my Streamlit app that involves a data\_editor and action buttons. My goal is to prevent users from clicking action buttons while they’re in the middle of edi…

---

## [Adding CSS styling to st.data\_editor() widget](https://discuss.streamlit.io/t/adding-css-styling-to-st-data-editor-widget/86812)

<div class="topic-metadata">

**Author:** [@Ilya1](https://discuss.streamlit.io/u/Ilya1)\
**Replies:** 1\
**Last updated:** [April 7, 2025, 1:21pm UTC](https://discuss.streamlit.io/t/adding-css-styling-to-st-data-editor-widget/86812 "2025-04-07T13:21:51Z")

</div>

Hi! I have seen a few posts on this topic but none seem to be addressing the issues I am having. I currently have a relatively simple Streamlit app which performs calculations given a set of input data. I have a few pa…

---

## [Data\_Editor update display/element without rerun and direct change](https://discuss.streamlit.io/t/data-editor-update-display-element-without-rerun-and-direct-change/98294)

<div class="topic-metadata">

**Author:** [@Alex36](https://discuss.streamlit.io/u/Alex36)\
**Replies:** 0\
**Last updated:** [March 28, 2025, 11:02am UTC](https://discuss.streamlit.io/t/data-editor-update-display-element-without-rerun-and-direct-change/98294 "2025-03-28T11:02:06Z")

</div>

Hello everyone, I have an issue and I would like to see if there is a way to do it or if it’s not possible. I’m working on average data\_editor (hundred to few thousands lines) and I have 4 columns named A, B, C, X with …

---

## [Retain selection of st.dataframe across pages](https://discuss.streamlit.io/t/retain-selection-of-st-dataframe-across-pages/98074)

<div class="topic-metadata">

**Author:** [@pingpongofkingkong](https://discuss.streamlit.io/u/pingpongofkingkong)\
**Replies:** 0\
**Last updated:** [March 27, 2025, 10:47am UTC](https://discuss.streamlit.io/t/retain-selection-of-st-dataframe-across-pages/98074 "2025-03-27T10:47:13Z")

</div>

Is it possible to retain selection of an st.dataframe across pages in a multi-pages app? I used two session states, one of which is used with st.dataframe key, the other switches the key state, but it is not working, wi…

---

## [Unexpected extra column appears in data\_editor](https://discuss.streamlit.io/t/unexpected-extra-column-appears-in-data-editor/94014)

<div class="topic-metadata">

**Author:** [@Basile](https://discuss.streamlit.io/u/Basile)\
**Replies:** 2\
**Last updated:** [March 4, 2025, 8:01am UTC](https://discuss.streamlit.io/t/unexpected-extra-column-appears-in-data-editor/94014 "2025-03-04T08:01:35Z")

</div>

Hello everyone, I’m new to Streamlit. I’ve searched other discussions but couldn’t find a solution. I want to allow users to fill in data using the data\_editor widget, download it as a CSV file, and then re-import it l…

---

## [St.data\_editor: bug after remove lines and add new lines](https://discuss.streamlit.io/t/st-data-editor-bug-after-remove-lines-and-add-new-lines/93047)

<div class="topic-metadata">

**Author:** [@James.Kernel](https://discuss.streamlit.io/u/James.Kernel)\
**Replies:** 1\
**Last updated:** [February 17, 2025, 1:47pm UTC](https://discuss.streamlit.io/t/st-data-editor-bug-after-remove-lines-and-add-new-lines/93047 "2025-02-17T13:47:34Z")

</div>

Hello, I have a local environment with Streamlit 1.41. Using this example: import streamlit as st import pandas as pd df = pd.DataFrame( \[ {"command": "st.selectbox", "rating": 4, "is\_widget": True}, …

---

## [Select and delete row in st.data\_editor using native checkbox](https://discuss.streamlit.io/t/select-and-delete-row-in-st-data-editor-using-native-checkbox/92929)

<div class="topic-metadata">

**Author:** [@sekijr](https://discuss.streamlit.io/u/sekijr)\
**Replies:** 1\
**Last updated:** [February 16, 2025, 6:55pm UTC](https://discuss.streamlit.io/t/select-and-delete-row-in-st-data-editor-using-native-checkbox/92929 "2025-02-16T18:55:56Z")

</div>

This post is similar to this one: I’m having a a st.data\_editor where I have data pulled from SQL table: The code below works like a charm if I use the right column: The Delete button appears, I can click it …

---

## [Text Overlay Issue in Dataframe Column Menu (v1.42.0) with Custom HTML Wrapping](https://discuss.streamlit.io/t/text-overlay-issue-in-dataframe-column-menu-v1-42-0-with-custom-html-wrapping/92622)

<div class="topic-metadata">

**Author:** [@Andr](https://discuss.streamlit.io/u/Andr)\
**Replies:** 0\
**Last updated:** [February 10, 2025, 1:46pm UTC](https://discuss.streamlit.io/t/text-overlay-issue-in-dataframe-column-menu-v1-42-0-with-custom-html-wrapping/92622 "2025-02-10T13:46:55Z")

</div>

Streamlit Version: 1.42.0 Python: 3.12-slim Hi Streamlit Community, I’m encountering a visual bug with the new dataframe column menu options (sort and pin) introduced in Streamlit 1.42.0. The text for the menu items is b…

---

## [Data Editor in form not updating the edited dataframe when submit button is clicked](https://discuss.streamlit.io/t/data-editor-in-form-not-updating-the-edited-dataframe-when-submit-button-is-clicked/91535)

<div class="topic-metadata">

**Author:** [@Mohammad12](https://discuss.streamlit.io/u/Mohammad12)\
**Replies:** 2\
**Last updated:** [January 26, 2025, 8:41pm UTC](https://discuss.streamlit.io/t/data-editor-in-form-not-updating-the-edited-dataframe-when-submit-button-is-clicked/91535 "2025-01-26T20:41:23Z")

</div>

Hi, Python and Streamlit newbie here so I suspect I am doing something wrong. I have Panda dataframe in a form like so: def form\_02(): # Create empty DataFrame for data entry form\_data\_df = pd.DataFrame( …

---

## [How to prevent \`st.data\_editor\` from being displayed when created?](https://discuss.streamlit.io/t/how-to-prevent-st-data-editor-from-being-displayed-when-created/89682)

<div class="topic-metadata">

**Author:** [@Sean2](https://discuss.streamlit.io/u/Sean2)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 2:05am UTC](https://discuss.streamlit.io/t/how-to-prevent-st-data-editor-from-being-displayed-when-created/89682 "2025-01-09T02:05:38Z")

</div>

Hi all, I am wondering how to defer showing the st.data\_editor (e.g. not at the point in the script when the st.data\_editor function is called). The case I have is something like below. There are a large number of count…

---

## [How to update a component with data returned by a data\_editor placed below it?](https://discuss.streamlit.io/t/how-to-update-a-component-with-data-returned-by-a-data-editor-placed-below-it/87952)

<div class="topic-metadata">

**Author:** [@Giovanni1](https://discuss.streamlit.io/u/Giovanni1)\
**Replies:** 2\
**Last updated:** [December 19, 2024, 9:09am UTC](https://discuss.streamlit.io/t/how-to-update-a-component-with-data-returned-by-a-data-editor-placed-below-it/87952 "2024-12-19T09:09:03Z")

</div>

I need to show some statistics about a dataframe at the top of my app. The dataframe can be edited with a data\_editor placed below the statistics pane. How can I update the statistics component with the edited data ret…

---

## [How to get a call back function with aggrid (similar to on\_change with data\_editor)?](https://discuss.streamlit.io/t/how-to-get-a-call-back-function-with-aggrid-similar-to-on-change-with-data-editor/87839)

<div class="topic-metadata">

**Author:** [@ClaraBird](https://discuss.streamlit.io/u/ClaraBird)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 2:20pm UTC](https://discuss.streamlit.io/t/how-to-get-a-call-back-function-with-aggrid-similar-to-on-change-with-data-editor/87839 "2024-12-17T14:20:15Z")

</div>

Hi all! I have this app that uses beautiful aggrid tables. Now I want to add new tables that, when a value is added, will call a function: def edit\_session\_state(df, country, LEFT\_RIGHT): st.session\_state\[f"manual…

---

## [Dataframe with selection column, possible to make single row selection?](https://discuss.streamlit.io/t/dataframe-with-selection-column-possible-to-make-single-row-selection/68505)

<div class="topic-metadata">

**Author:** [@Plugs](https://discuss.streamlit.io/u/Plugs)\
**Replies:** 6\
**Last updated:** [December 5, 2024, 2:00pm UTC](https://discuss.streamlit.io/t/dataframe-with-selection-column-possible-to-make-single-row-selection/68505 "2024-12-05T14:00:58Z")

</div>

Hello, i have a locally run app where i used this technique to create a dtaframe with row selections. My question is if it is possible to make the dataframe work in a way that only one row is selectable, e.g. if one sele…

---

## [Format when entering a new row for a date doesn't follow the format parameter](https://discuss.streamlit.io/t/format-when-entering-a-new-row-for-a-date-doesnt-follow-the-format-parameter/86305)

<div class="topic-metadata">

**Author:** [@evan54](https://discuss.streamlit.io/u/evan54)\
**Replies:** 1\
**Last updated:** [November 26, 2024, 1:42pm UTC](https://discuss.streamlit.io/t/format-when-entering-a-new-row-for-a-date-doesnt-follow-the-format-parameter/86305 "2024-11-26T13:42:55Z")

</div>

I’m using st.column\_config.DateColumn - Streamlit Docs It works well when displaying data but if I want to add a new row in data\_editor then the format seems to default to the locale, in my case mm/dd/yyyy instead of my…

---

## [How to get on\_change callback func work with data\_editor](https://discuss.streamlit.io/t/how-to-get-on-change-callback-func-work-with-data-editor/86141)

<div class="topic-metadata">

**Author:** [@serdar\_bay](https://discuss.streamlit.io/u/serdar_bay)\
**Replies:** 1\
**Last updated:** [November 23, 2024, 8:49am UTC](https://discuss.streamlit.io/t/how-to-get-on-change-callback-func-work-with-data-editor/86141 "2024-11-23T08:49:51Z")

</div>

Hi, I am trying to use on\_change callback function within data\_editor. I can’t seem to get my table updated when I edit the editable fields on the table. My expectation is as soon as I edit the data the table should upd…

---

## [I want to discuss about st.dataeditor](https://discuss.streamlit.io/t/i-want-to-discuss-about-st-dataeditor/86008)

<div class="topic-metadata">

**Author:** [@neeraj.simhadri123](https://discuss.streamlit.io/u/neeraj.simhadri123)\
**Replies:** 0\
**Last updated:** [November 20, 2024, 10:01am UTC](https://discuss.streamlit.io/t/i-want-to-discuss-about-st-dataeditor/86008 "2024-11-20T10:01:00Z")

</div>

I want to leverage the st.data\_editor feature, which comes with editable cells. Currently, when the user adds or edits on the dataframe, the changes are only reflected within the current session page. I want to enhance t…

[Next page](https://discuss.streamlit.io/tag/data-editor/154.md?match_all_tags=true&page=1&tags%5B%5D=data_editor)
