Used gspread to import a google sheet into a dataframe, Trying to make a line chart with it but i cant seem to get the x axis to display the date values that i have in the sheet Code snippet:
list = df.columns.tolist()
choice = st.multiselect(“Choose Data type”, list, default=“CO2”)
so i tried it and it showed an error,
TypeError: unhashable type: ‘list’
it’s from: # datas = df[[choice, "date"]] #
is the issue that i used x.tolist here?:
list = df.columns.tolist()
choice = st.multiselect("Choose Data type", list, default="Temperature")
and if yes how can i fix this ? i tried adding list2 = tuple(list) and changing the following lines to use list2 instead of list but got the same error