So I made this code with a dropdown box in it. When I run it you can see the dropdown box with the values (names) in it. But as soon I select a hotel name it does nothing. I want if that you select name that it gives you only data from that name. Does somebody knows what I need extra to fix this?
Conclusion: The layout is perfect only the filter doesn’t work.
In your go.Scattermapbox … aren’t you expecting size to be an int and color to be a string (i.e. rgb(3,3,3))? Your code has both of these as dataframes…
you have to add this line of code in your dropdown before multi=True value=['Hotel Arena']
because you don’t want to start off with a None value unless you raise an exception.
above the return, inside the function, you want to add: dff = df[df.Hotel_Name.isin(value)]
because the value chosen in this case comes within a list of strings of hotel names and not a stand-alone string. So that’s how you filter your dataframe in this case.
and eveything within the return data should be dff, not df.