pythonビッグデータの高速読み出し
1173 ワード
rd = pd.read_csv(path7 + u'0501-0914.csv',encoding = 'gbk',iterator = True)
loop =True
dflst = []
i = 0
while loop:
try:
i+=1
df0 = rd.get_chunk(50000)
dflst.append(df0)
except StopIteration:
loop = False
# print 'stop'
df = pd.concat(dflst,ignore_index =True)
転載先:https://www.cnblogs.com/lyf136686029/p/9768616.html