'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:


Thanks in advance

Try converting this to a list.

1 Like