使用SVM进行库存分析

时间:2019-01-26 09:37:13

标签: python python-3.x

date = []
price = []
with open(output_path_new) as datasource:
    r = csv.reader(datasource)
    next(r)
    for row in r:
        date.append(int(row[0].split('-')[2]))
        price.append(float(row[1]))

尝试使用python进行股市分析。运行此命令时出现错误

  

date.append(int(row [0] .split('-')[2]))

     

IndexError:列表索引超出范围

0 个答案:

没有答案