We have a use case to calculate and add columns from a existing columns in the data frame. Is there a way we can display the list of column names in the text box where user can perform operations with the autocomplete feature of column names and write expressions like (column1 = column2 + Column3)
Is there a way to display autocomplete in the text box with @ or any identifier with the list of columns in the dataframe?
Hey @jenil, welcome!
I’d recommend passing your
list(df.columns) into the
options parameter for
st.multiselect('choose columns', df.columns) (This will be slightly different with streamlit-tags)
The expressions part will be dependent on your usecases. Maybe provide another drop down and link those options to python operator function calls?
If you’re allowed to share a code snippet of what you’ve tried so far others might be able to chime in more!
Thanks for the suggestion…I will try with multiselect and operations…