How to print pivoted dataframe in datatable?

I am calling one callbacks which filters the value based on checkbox and pivots the table based on the value. I am returning that dataframe to store using dcc.Store(). it sgives me an error that the callback is not JSON serializable.

Hi @prerakshah and welcome to the Dash community :slightly_smiling_face:

Instead of returning a dataframe, try returning it as df.to_dict("records") This will put it in the correct format for dcc.Store