Streamlit AG Grid aggregation function in header

I have a streamlit application where I’m grouping rows based on a segment, but as soon as I add rowGroup = true, then it will simply not hide the aggregation in the header…

df_test = get_test(2024)

gridOptions = {
“columnDefs”: [
{“field”: “segment”, “headerName”: “Segment”, “width”: 150, “rowGroup”: True, “suppressAggFuncInHeader”: True, “hide”: True},
{“field”: “name”, “headerName”: “Name”, “width”: 150},
{“field”: “opex_annual_budget”, “headerName”: “Annual Budget”, “width”: 150, “aggFunc”: “sum”, “suppressAggFuncInHeader”: True},
{“field”: “opex_ytd_budget”, “headerName”: “YTD Budget”, “width”: 150, “aggFunc”: “avg”},
],

}

testdata = AgGrid(
df_test,
theme=‘balham’,
gridOptions=gridOptions,
)

I’m using the
supressAggFuncInHeader = True
in all my configure columns, and it works before I group them, but after I group them it stops working for whatever reason …