How can I get filtered indexes in streamlit aggrid without using checkboxes

Hi I am using Streamlit Aggrid. I would be interested on getting the indexes of the filtered rows without using checkboxes. Example:

import pandas as pd
import streamlit as st
from st_aggrid import AgGrid

data = {
    "column1": [420, 380, 390, 410, 420, 550, 600],
    "column2": [50, 40, 45, 50, 55, 60, 65],
    "column3": [5, 12, 1, 4, 5, 6, 7]
}

df = pd.DataFrame(data)

df.reset_index(inplace=True)

AgGrid(df)

st.write('filtered indexes:')

#???????????

If I filter column1 for values bigger than 500 I should see this:

is this possible? thanks!

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