comments = pd.read_csv('xxx.csv',iterator=True)
loop = True
df = comments.get_chunk(1)
while loop:
try:
tmp = None
tmp=comments.get_chunk(500)
df = df.append(tmp)
except StopIteration:
loop = False
print("Iteration is stopped.")
pandas读取大数据
最新推荐文章于 2023-04-09 15:29:27 发布