When you set a groupby as a ColumnDataSource, how do you update the ColumnDataSource.data?
A Pandas DataFrame object
source = ColumnDataSource(data=df)
to update:
source.data = dict(df)
A Pandas GroupBy object
group = df.groupby((‘colA’, ‘ColB’))
source = ColumnDataSource(data=group)
to update:
???
When I try
source.data = dict(group)
I get: “error handling message Message ‘PATCH-DOC’ (revision 1): TypeError(“attribute of type ‘list’ is not callable”,)”
Do I need to manipulate the group object when I pass the updated version back to the ColumnDataSource?
Thanks,
Jonathan

