Adding lines to a graph using a dataframe

@jbrvo If multi=True inside a dcc.Dropdown then selected_dropdown_value is going to be a list rather than a single value so doing a df.ix[df[‘FUNDS’] == selected_dropdown_value] won’t necessarily work. instead, you’ll probably need to do something like

df[df[‘FUNDS’].str.contains('|'.join(selected_dropdown_value))

I believe that there are some similar examples to this elsewhere in the forum. I recommend searching for multi=True and seeing if any of the other discussions would help. For example, see How to populate a DropDown from unique values in a pandas data frame

I also recommend print(selected_dropdown_value) inside your callbacks to inspect the values and using an interactive session in IPython figure out the pandas filtering.

I hope that helps!