KeyError:"None of [Index(['2017-01-01, ...\n dtype='object', length=365)] are in the [columns]"
看的是这篇文章https://blog.csdn.net/oh5w6hinug43jvrhhb/article/details/78796069第一个py文件生成随机数,没有报错importcsvimportrandomimportdatetimefn='data.csv'withopen(fn,'w',newline='')asfp:wr=csv.writer(fp)wr.writerow(['