How to write many DataFrames in a single CSV file?

#1

Hello,

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
#2

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

3 Likes
#3

Thanks ! It works ! :grinning: