'Index' object has no attribute 'index' in Multiselect

Hi Team,

I am trying to create an app where I am trying to upload the data and storing it in a session to store the session information so that I dont have to upload the data everytime when i change the page.

But when I am getting an error

โ€œโ€˜Indexโ€™ object has no attribute โ€˜indexโ€™โ€

while trying to apply the session on Multiselect feature using the following code:

state.multiselect = st.multiselect("Select multiple Numerical (Continous) variable", state.df.columns, state.multiselect)

Request you to please help me resolve this issue.

I am using the following gist code for creating session object:

https://gist.github.com/tvst/036da038ab3e999a64497f42de966a92

Thanks in advance

Try converting this to a list.

1 Like