Awesome, we needed an easy-to-use grid editor. Hopefully, cell dropdowns will come soon.
Cell dropdowns are already in the release, but they only get activated for columns with the categorical type (see here).
Awesome, we needed an easy-to-use grid editor. Hopefully, cell dropdowns will come soon.
Cell dropdowns are already in the release, but they only get activated for columns with the categorical type (see here).
Itâs already in work; we will release an URL column type soon. Is your requirement just to have clickable URLâs in the cells?
pandas 1.1.5
numpy 1.21.6
Great to hear! Yes, basically, hopefully with a way to set the display name / icon and the _target
attribute.
Thanks! It would be very helpful if you could report it here as an issue with the exception and the snippet you used. This sounds like something that might need a fix asap: Issues · streamlit/streamlit · GitHub
Is there any ability to hide the index column? I noticed this is possible with markdown for st.table but not st.dataframe for streamlit versions >1.10, and it doesnât appear available for this either? Thanks, trying to make pretty tables for client .
P.S. would love the functionality to limit the users ability to manipulate data by column. For example if I want user to be able select a checkbox in a new column as shown in the release example, BUT not allow them to accidentally manipulate any other data, which IMO is easy to do when playing around with this.
Thanks!
Perfect! We have been waiting for this update for a while. After a quick try with my application, I have some questions:
1. It has already been asked in the comments; however, I want to remind you. Is it possible to delete the indexing column since we can add custom indexing?
2. Is there a way to set the total width to the page width so that the column widths are arranged accordingly?
3. Is it possible to colorize the cell background or cell edge?
Best.
I see you guys showing these effect.
Setting data_editor to dynamic shows one of the features that i was looking for which is a selectable checkbox. but it seems that it is only useful for editing the table. i would like to be able to get information from the rows selected as in aggrid.
I added a column with checkbox starting with all values False. Then once user checks certain boxes you can subset the edited data frame where the value of that column is now True. I think this is an example of what youâre asking for.
Spoiler alert! Apparently, when updating our docs @snehankekre scooped a secret feature thatâs coming soon
So the answer is: you canât do that today but, if you want to be pleasantly surprised, just wait a couple of releases. @jrieke and @lukasmasuch are working on it!
Hereâs a hack (if you are using data frames) to get rid of the index column in the display, by first setting the index to a new index column I want, then resetting the index after to get back to my original data frame (but now with user edits). I think it could work if you are wanting to customize index, but it definitely depends on the type of data you are showing. It works for me without breaking downstream code that uses the edited df and looks much better in display.
Example:
df = df.set_index(âNew Index Columnâ)
edited_df = st.experimental_data_editor(df)
edited_df = edited_df.reset_index()
Also use_container_width=True is a parameter option which I think answers your 2nd question?
Thanks. I need this feature very much. At present, I have to use st.columns to make particularly ugly table with widgets. Can you give an approximate release time? Like weeks or months? Or follow the next release?
We already fixed this issue a few days ago and it will be released with 1.20 in a few days. In the meantime, you might be able to fix this by updating numpy
.
Thank you very much. I updated numpy to the latest but it still doesnât solve the problem. I will wait for the new update and hope it will solve my problem
Great and useful feature! But canât it support pd.styler? For example, st.dataframe(allocation_csv.style.apply(highlight_busy).apply(highlight_offline))
can create a table with highlighted blocks (green background color), while
st.experimental_data_editor(allocation_csv.style.apply(highlight_busy).apply(highlight_offline))
cannot show the highlighted color.
Unfortunately, supporting pandas styler would seriously slow down the data editor. But we exploring alternative ways to apply styling and modify display values.
Awesome! Thanks for the effort!
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.