名称错误:未定义名称“框架" [英] Name Error: name 'frame' is not defined

查看:90
本文介绍了名称错误:未定义名称“框架"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我!

框架

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-32725ef162e5> in <module>()
----> 1 frame

NameError: name 'frame' is not defined

推荐答案

您的画布中是否同时具有Doctors.csv和diadia.csv数据集? ds的最后一个分配是diadia.csv数据.这会转换为数据框,因此请确保在实验中拥有该数据集并运行它,然后再提取所有 配置代码.

Do you have both doctors.csv and diabetes.csv datasets in your canvas? Last assignment of something to ds is diabetes.csv data. This is converted to a dataframe, so be sure to have this dataset in your experiment and having run it before extracting all the configuration codes.

我要检查的一件事是注释行ds = ws.datasets ['doctors.csv']和ds = ws.datasets ['diabetes.csv']并再次运行脚本.

One thing I would check is commenting the lines ds = ws.datasets['doctors.csv'] and ds = ws.datasets['diabetes.csv'] and running again the script.

让我们知道!


这篇关于名称错误:未定义名称“框架"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆