We want to add the data inside a grid along with a button at the last column of the Grid.
How we can add the below data inside a Grid or DataFrame
using Streamlit
We want to add the data inside a grid along with a button at the last column of the Grid.
How we can add the below data inside a Grid or DataFrame
As @Charly_Wargnier had pointed out, sharing your code would help us to see what you are trying to achieve in your app.
Based on the available info in the post, it seems you had already implemented the first part
As for the second part
You can use st.dataframe
(st.dataframe - Streamlit Docs) or st.data_editor
(st.data_editor - Streamlit Docs) for displaying dataframes.
Additionally, the Docs page has a dedicated section on various other ways to display tabular data:
Hope this helps!
I believe @info_testing is asking about how to do the first part (i.e. display buttons at the end of a dataframe’s last column)
I also have the same question. How do we do this?
@dataprofessor @Charly_Wargnier
I found this stackoverlow answer solve the issue.
Check Constantine Kurbatov’s answer. The “red” lines in the image he has shown are just used to hide the fields (I initially mistook them as buttons and got confused)
This topic was automatically closed 180 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.