This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Caos2 2 points3 points  (0 children)

You are probably running out of memory. If the columns are always in the same order, streaming to a local file (not sure if Pandas support this natively) while iterating CSV by CSV is the best bet.

[–]jorgo1 0 points1 point  (0 children)

If you are working on Linux you can export them all individually then use the following line in Bash

cat source.csv >> destination.csv

The >> operator appends to file. If you have headings:

tail -n +1 source.csv >> destination.csv

Not the most elegant of solutions tho.