How to save st.aggrid filter data to new st.dataframe

I have successfully implemented st.aggrid in my application, which features five columns and a substantial number of rows (1,000). Users can now easily retrieve data by county and city utilizing the filtering capabilities of aggrid, and they can save this data in a CSV file. However, I seek guidance on how to save the filtered data into a new st.dataframe. I would appreciate your assistance in providing the appropriate code to achieve this. Thank you in advance for your support.