Building a PivotTable report with Streamlit and AG Grid

Hi I tried to download the code and run it within my own PC. Managed to display the first default layout

however, after clicking the checkbox, there is no grouping/ pivot. Is there any settings to be set?
See screenshot