Create an automatic column with st_aggrid

Hello !
I would like to create an AgGrid with a column “Y” that automatically displays a string based on the previous column “X”.

For example, if a row in column X is 1, then “group 1” should be displayed in the same row in column Y.

I found this code which allows to display a numerical value automatically in a column according to the previous one, but I do not know how to adapt it to display a string. (https://github.com/PablocFonseca/streamlit-aggrid/blob/main/examples/virtual_columns.py)

Thanks

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