Dropdown is not working - when selected does not update the figure

I have three dropdowns in my app. But only one seems to be working not sure why others when selected from the dropdown are not updating the figure

year-picker, Stage are not working.

year_options = []
for year in df[‘year’].unique():

app.layout = html.Div(children = [html.H1([‘P 61’]),
dcc.Dropdown(id = ‘Stage’, options = stage_options, value = df[‘Stage’]),
dcc.Dropdown(id = ‘dd’, options = [{‘value’:w,‘label’:w} for w in words],value =" "),
dcc.Dropdown(id = ‘year-picker’, options = year_options, value =df[‘year’]),


def update_figure(value, year, Stage):
df_year = df.loc[df[‘year’] == year]
df_year = df.loc[df[‘Stage’] == Stage]
df_year = df[df[‘Activity Name’].str.contains(value)]

if look carefully, only if I updated the

def update_figure(year):
df_year = df.loc[df[‘year’] == year]
return df_year

is returning empty data frame

if i use update_figure(‘2019’)
is returning needed data frame.

I am under the assumption that my input should “2019” in the drop down. I am not sure how i can do this.