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:列表索引超出范围