I cant get an updated value that will be used further from widget by using jupyter notebook, for example here the code run well for the first time and it gives dataframe table but when i change the dropdown no change for my table
vd = 'vd'
drop_down = widgets.Dropdown(options=['VD','TG','AI'],
description='Choose',
disabled=False)
def on_change_dropdown(change):
global vd
vd = change.new
drop_down.observe(on_change_dropdown, names='value')
display(drop_down)
#The code below works at first time when I run but after changing the drop down no change
#create group based on this column
group = df.groupby(['thiscolumn'])
#cget group
g = group.get_group(drop_down.value)
g.head()