Streamlit AgGrid Column order/position

Hello,

I am using Streamlit Aggrid to dipaly a dataframe but I would like to reorder the column position to display it.
Is there anyway to do it with Aggrid with e columndefs or something like that?
Or is it better do it before in the dataframe?

Thank you!