Is it possible to extract a single cell from data frame in separate editing window in st.data_editor?
So far I found the code that makes it possible to edit and save the editing of the WHOLE table:
with st.form(“data_editor_form”):
st.caption(“Edit the dataframe below”)
edited = st.experimental_data_editor(dataset, use_container_width=True, num_rows=“dynamic”)
submit_button = st.form_submit_button(“Submit”)
if submit_button:
try: #Note the quote_identifiers argument for case insensitivity
session.write_pandas(edited, “TTT”, overwrite=True, quote_identifiers=False)
st.success(“Table updated”)
time.sleep(5)
except:
st.warning(“Error updating table”) #display success message for 5 seconds and update the table to reflect what is in Snowflake
st.experimental_rerun()
Is it possible to only extract one particular sell from this table and edit it in separate editing field (outside of the table)?
Thank you for sharing your question with the community! Can you share a more detailed example?
Also, your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question here and update your post to help the community answer your question.
So far I found the code that makes it possible to edit and save the editing of the WHOLE table:
with st.form(“data_editor_form”):
st.caption(“Edit the dataframe below”)
edited = st.experimental_data_editor(dataset, use_container_width=True, num_rows=“dynamic”)
submit_button = st.form_submit_button(“Submit”)
if submit_button:
try: #Note the quote_identifiers argument for case insensitivity
session.write_pandas(edited, “TTT”, overwrite=True, quote_identifiers=False)
st.success(“Table updated”)
time.sleep(5)
except:
st.warning(“Error updating table”) #display success message for 5 seconds and update the table to reflect what is in Snowflake
st.experimental_rerun()
Is it possible to only extract one particular sell from this table and edit it in separate editing field (outside of the table)?
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.