【问题标题】:Error Sframe iPython错误框架 iPython
【发布时间】:2016-11-18 13:40:04
【问题描述】:

我正在参加 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 新手,谁能帮帮我?

【问题讨论】:

  • 打印 graphlab.__file__ 以确保您实际导入的是 graphlab 包,而不是当前工作目录中名为 graphlab.

标签: python sframe


【解决方案1】:

f 应该在 sframe 中大写。

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

【讨论】:

    猜你喜欢
    • 2011-07-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多