Streamlit extras dataframe explorer Filtered Results- How to export to an Excel

Summary

I imported the streamlit extras package and used the dataframe explorer by passing my dataframe.

Now my question is , how to export the results to Excel that were produced by dataframe explorer filters and selection.

I am aware how to download a csv/excel in streamlit in general, but here the case, i need to export that were filtered by selections from dataframe explorer on UI

Any help will be highly appreciated, here is code i am using for displaying the dataframe explorer

df = dataframe_explorer(df)
st.dataframe(df)