Given data.csv:
a,b,c
1,2,3
4,5,6
You can do this:
CSV.read(
["data.csv", "data.csv"],
DataFrame;
source = :Set => [1, 2]
)
to get
4×4 DataFrame
Row │ a b c Set
│ Int64 Int64 Int64 Int64
─────┼────────────────────────────
1 │ 1 2 3 1
2 │ 4 5 6 1
3 │ 1 2 3 2
4 │ 4 5 6 2