标签:path ignore loop print concat stop += while lse
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)
标签:path ignore loop print concat stop += while lse
原文地址:https://www.cnblogs.com/lyf136686029/p/9768616.html