Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 将数据帧渲染到网页_Python 3.x_Api - Fatal编程技术网

Python 3.x 将数据帧渲染到网页

Python 3.x 将数据帧渲染到网页,python-3.x,api,Python 3.x,Api,我已经创建了一个ML模型,我想将测试集的预测发布到一个网页上,以便为非技术团队成员提供更好的可视化效果 我已经将预测转换为数据帧,转换为测试集和原始数据的案例编号 Predictions=pd.DataFrame({'Case.Number':CN_test,'Org_Data':y_test,'Predictions':y_pred}) 由于我是新手,我对API的体验只是为hello world创建一个基本API 请求指导如何使用API或任何其他方式完成此操作 问候 Sudhir由于数据帧无

我已经创建了一个ML模型,我想将测试集的预测发布到一个网页上,以便为非技术团队成员提供更好的可视化效果

我已经将预测转换为数据帧,转换为测试集和原始数据的案例编号

Predictions=pd.DataFrame({'Case.Number':CN_test,'Org_Data':y_test,'Predictions':y_pred})
由于我是新手,我对API的体验只是为hello world创建一个基本API

请求指导如何使用API或任何其他方式完成此操作

问候


Sudhir

由于数据帧无法直接呈现,因此必须将其转换为列表 下面是相同的代码

我在另一个查询中得到了解决方案:


有人能帮忙吗