How to write many DataFrames in a single CSV file?


Is it possible to write many DataFrames (with identical structure) in a single CSV file by using for example CSV.write and a loop ?

Thank you very much for your advice !

Moreover, how to write 2 DataFrames with diffrent structure in a single CSV file without using a shell command such as cat 1.csv 2.csv > res.csv (for example) ?

Thanks again !

1 Like

CSV.write form CSV.jl has append keyword argument that is designed to handle this case.


Thanks ! It works ! :grinning: