当我尝试使用线性回归预测Google股票数据时出现错误

时间:2018-07-01 11:44:45

标签: python

我已将csv导入到当前的pgm中,并且从其他pgm中获取了该csv,并将其包含在当前pgm中。运行后,出现以下错误:

GoogleData_X = google_data.Date[:, np.newaxis, 2]
AttributeError: 'str' object has no attribute 'Date'

其中GoogleData_X是变量,google_data中的google_data.date是我导入的csv文件,而csv文件具有以下属性:

Date,Open,High,Low,Close,Volume

0 个答案:

没有答案