I need to process a large dataframe in chunks and I applied this function:
def chunker(seq, size):
return (seq[pos:pos + size] for pos in range(0, len(seq), size))
for i in chunker(df,chunk_size):
....
However, when I run this, I get error: ValueError: invalid literal for int() with base 10:
Do you have another way to process dataframe in chunks or to adjust above script?
thanks !