Iâm currently reading the streamlit documentation trying to find a feature that allow me create editable data tables âa columns with editable cells like excelâ
if anyone could give me some help, will be appreciated
This looks really awesome, but very complexâŠ
By any chance is there another way to interact dynamically with dataframes ? Appending rows in existing dataframe or changing dataframes values on the fly ?
@blob123 I âthinkâ (but @ash2shukla is the expert in this so Iâll let him chime inâŠ) you can use a combination of Bokeh datatable + streamlit-bokeh-events for editable tables, but that may be a bit more complex to use tooâŠ
I know the Streamlit team is thinking about it but thereâs no immediate timeframe for its development so in the meantime if you need an editable datatable, your best bet is writing a component for it
Have you looked at Streamlitâs add_rows functionality? Youâll see code examples for adding data to a dataframe and showing the result in a plot in real time.
For this one you may be better off overwriting the dataframe variable for now.
But this is hard to implement in an user interactive app, because a bit far from a full editable dataframe in an âExcelâ fashion, to record userâs inputsâŠ
I try to create an app with an optimization function, variables and constraints: I donât know how to input the various parameters of my bunch of constraints. Thatâs why I was also thinking of an editable table.
Maybe instead of this editable table, what could be the best way to populate e.g. a 4x4 table for the app user ?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking âAccept allâ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
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.
Performance cookies
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.
Functional cookies
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.
Targeting cookies
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.