User input for column in dataframe using Ag-Grid

Hi again @hazirafidi :wave:

Since you are using columns= list(col_name), to define the columns. I’m guessing it treats every character as a column name. To get column names based on the input no. of columns, I think you can use the method mentioned in this (Iterate dictionary in streamlit) to get column names one by one and store them in a list and add it to the data frame as columns and use it for the AgGrid.

Hope this helps :v:.