admin管理员组

文章数量:1418922

I have a basic code that functions correctly, and I have included a visual representation of the data below. I specifically need the data highlighted in the red box. My objective is to extract only this marked data into a new DataFrame. As I am new to Streamlit, I would appreciate your guidance on the appropriate code to achieve this.

my code :

import streamlit as st
import pandas as pd

from st_aggrid import AgGrid

df = pd.DataFrame({'Name': ['A', 'B', 'C'], 'Age': [25, 24, 1]})
container = st.container()
return_df = AgGrid(data = df, data_return_mode = ‘FILTERED’)
dd = st.write(list(return_df.values()))

本文标签: pythonHow save list data save in dataframeStack Overflow