# Using a value from dropdown box not displaying dataframe

**URL:** <https://discourse.jupyter.org/t/using-a-value-from-dropdown-box-not-displaying-dataframe/4169>\
**Category:** General\
**Created:** [April 27, 2020, 12:28pm UTC](https://discourse.jupyter.org/t/using-a-value-from-dropdown-box-not-displaying-dataframe/4169 "2020-04-27T12:28:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guy\_przytula](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/guy_przytula/32/1797_2.png) [@guy\_przytula](https://discourse.jupyter.org/u/guy_przytula)\
**Post date:** [April 27, 2020, 12:28pm UTC](https://discourse.jupyter.org/t/using-a-value-from-dropdown-box-not-displaying-dataframe/4169/1 "2020-04-27T12:28:03Z")

</div>

I have copied a sample of dropdown box but not displaying  
the dropdown is correctly displayed and values All an creators are available  
but in none case : the df or subset of df based on x is not returned

df=%sql select creator, name from sysibm.systables  
items=[‘All’]+sorted(df[‘CREATOR’].unique().tolist())  
def view(x):  
if x==‘All’ : return df  
return df[df[‘CREATOR’]==x]  
w = widgets.Select(options=items)  
interactive(view,x=w)  
thanks for all update  
best regards, Guy
