【发布时间】:2020-11-07 08:42:29
【问题描述】:
这一行:
else:
#add to this
nutrients_totals_df = pd.read_json(total_nutrients_json, orient='split')
正在抛出错误。 我像这样写我的json:
nutrients_json = nutrients_df.to_json(date_format='iso', orient='split')
然后我将它隐藏在一个隐藏的 div 或 dcc.Storage 在一个回调中,并在另一个回调中获取它。如何解决此错误?
【问题讨论】:
标签: json pandas plotly-dash