Thanks for sharing your code. st_pivot_table isn’t covered in the provided Streamlit sources, so I can’t verify whether its return value contains a filter_state key or a DataFrame. The general issue is that st.dataframe displays the DataFrame you pass to it; it doesn’t convert a pivot component’s state into one.