Wednesday, June 10, 2020

pandas dataframe chunk


for large pandas dataframe, after slicing, it keeps its original indices. So, an iterator has to be used.

#metaTb = pd.read_csv("metaGecode_2020-6-6.csv")
metaTb = pd.read_csv(infilename)
metaTb = metaTb[ mystart : myend]

for i, row in metaTb.iterrows():


No comments:

Post a Comment