- read as follows
c_size=10000000
c_chunk = pd.read_csv("CHARTEVENTS.csv", index_col=0, chunksize=c_size)
- wanted here each chunk in df format
c_list= []
for chunk in c_chunk:
chunk.columns=['ROW_ID', 'SUBJECT_ID', 'HADM_ID', 'ICUSTAY_ID', 'ITEMID', 'VALUE', 'VALUENUM', 'VALUEUOM']
c_list.append(chunk)
- the plan is to append the chunk to list. however i get an empty list, what do you think happened
c_chunk = pd.concat(c_list)
- As a result of empty list, i am getting valueError: no objects to concatenate. Your help is appreciated.