i am working on aggrid and use a a very simple code look
from st_aggrid import AgGrid
import pandas as pd
df = pd.read_json("https://www.ag-grid.com/example-assets/olympic-winners.json")
grid_return = AgGrid(df)
this is in json i did use excel and csv file but my table format is not working properly please help me what is this.
this is the picture that it should look like this
can anyone tell me what happened here why its happening i did multiple work by using height width things and changing its style but still its not working properly.
well thanks for your reply sir but sometime you know we need to work on different things according to our learning project and user requirement let me clear to you i am working on a project that is already build and having trouble on aggrid table formating idk what is happening but i did use aggrid on multiple system but still this problem persist and am bound to use aggrid please let me know if you have any solution of my problem.
I ran that code and it rendered exactly as expected, which is none of your screenshots. You must be doing something else but I don’t know what it can be.
i am not doing anything let me tell you i am working on python 3.12 and create env with it then pip install streamlit and st_aggrid, but this thing happend.
Not sure what you mean here. Of course you need to install streamlit-aggrid for the application to work. I had to install it too, you can see it in my requirements file.
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.