Dash pivottable (dash_pivottable.PivotTable)

Hi,

I am not able to refresh dash pivot table. Even I have tried by passing dataframe and data dict in data argument.

data2 = [dff.columns.values.tolist()] + dff.values.tolist()
print(data2)

pv = dash_pivottable.PivotTable(data=data2, cols=["Buckets"], rows=["Recs"], vals=["Items","Value"])

return pv

when I am printing data2 then the updated data is getting displayed. But the pivot table is not getting updated.

Any help will be appreciated.

Thanks,
Shubham