I see you guys showing these effect.
So how to display widgets in st.experimental_data_editor, could you write a demo? I didn’t find a way to do it in any docs.
I see you guys showing these effect.
Have you checked the docs?
I have read this document many times, could you show a simple demo how to put chart widgets in table cell? Just like these?
Or a button or something else?
We are currently finalizing these more advanced column types. You can already try it out here. This will be released within the next few weeks.
It’s cool. Will you add a button(button/upload button/ download button/ clickable link[just like button]) to data_editor? If so, we can make many exciting features!
I went into a styling issue when rendering decimals.
import streamlit as st
import pandas as pd
df = pd.DataFrame(
[
{"item": "Operating Income",
"2022Amount": 518224096.84,
"2021Amount": 541102193.80},
{"item": "Operating Costs",
"2022Amount": 138946684.89,
"2021Amount": 158904121.43},
{"item": "Taxes & Surcharges",
"2022Amount": 2113607.54,
"2021Amount": 2123422.01},
]
)
edited_df = st.experimental_data_editor(df.style.format({"2021Amount":"{:.2f}"}))
the 2021Amout of Operating Income shows the styling doesn’t work:
It seems the experimental_data_editor widget have a default style for float type, st.DataFrame’s styler got ignored.
Good idea We will definitely explore adding support for buttons in cells.
Unfortunately, pandas styler is currently not supported because of technical limitations (it would seriously slow down the data editor). But we are exploring alternative ways to apply styling and modify display values.
As far as I can recall, there was an issue like this soon after st.dataframe first came out, I’m pretty sure to have seen it on github issues… hope you guys find some front-end workaround, this experimental_data_editor is a game changer!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
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.