【发布时间】:2020-04-16 12:06:03
【问题描述】:
我需要将 10 个数据帧存储到一个列表中。数据帧是函数的输出。 问题是该列表与最后一个数据帧保持一致。例如,resultlist[0] 假设为 2020 年 2 月 1 日的数据框。但列表中的每个数据框都是 2020 年 2 月 10 日的输出。
resultList = [None]*10
for i in range(0,10):
resultList[i]= getResultfunction(id,listDates[i])
【问题讨论】:
标签: python data-structures data-storage