How to get list data save in dataframe

I would like to request your assistance with a coding task. 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. Thank you for your support in helping me save the listed data in a DataFrame.
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()))

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.