0

我正在 Coursera 上参加 ML 课程,但无法使用 . 打开文件SFrame,当我尝试时,出现以下错误:

sf = graphlab.Sframe.read_csv('people.csv')

******AttributeError                            Traceback (most recent call last)
<ipython-input-29-42b242f73eda> in <module>()
----> 1 sf = graphlab.Sframe.read_csv('people.csv')
AttributeError: 'module' object has no attribute 'Sframe'******

我也尝试运行 Kernel > Restart

NameError                                 Traceback (most recent call last)
<ipython-input-28-07d139e1ed65> in <module>()
----> 1 Kernel > Restart

NameError: name 'Kernel' is not defined

我是 Python 新手,谁能帮帮我?

4

1 回答 1

1

f 应在 sframe 中大写。

sf = graphlab.SFrame.read_csv('people.csv')
于 2017-07-24T19:05:07.760 回答