I have a Matplotlib stacked bar plot -
df.groupby(['date', 'flavor'])['minutes'].sum().unstack().plot(kind='bar', stacked=True)
I would like to convert this to an interactive plot using interact
from ipywidgets
. But, when I try this -
@interact
df.groupby(['date', 'flavor'])['minutes'].sum().unstack().iplot(kind='bar', stacked=True)
It gives me an Exception: Invalid keyword : 'stacked'
. Can someone tell me the right syntax for this kind of interactive chart with ipywidgets
?
Thanks!