Changing decimal seperator to comma in streamlit aggrid

Hi there,

I’m new to the community and first of all, I have to thank you all. I’m using streamlit for quite a while and this forum is a great resource with lots and lots of valuable information.

Now I have a question regarding the great aggrid component:

As I live in Germany, it would be possible to change the deciamal seperator within the grid from point to comma.

Is this somehow possible?

Thanks a lot in advance

Daniel

Hi @Kreidlerfreak , try using the JSCode with the information given in this link: Formatting numbers, strings and currency values in ag-Grid

You’ll probably need to write a Currency formatter function and for your column.

Cheers

@Shawn_Pereira Thanks a lot, that solved my problem.

@Kreidlerfreak Thank you for a useful question. Can you please post the code to your solution for those of us who don’t know how to start using JSCode formatting in aggrid?
I would like to change the decimal separator as well as add spaces between any hundreds, so that 1000000 is displayed as 1 000 000, to increase user friendliness.

Best regards!