Merge two dataframes together

What does index mean? You’re treating these DataFrames like arrays? If so, can you use hcat?

julia> using DataFrames

julia> x = DataFrame(a = [2, 3])
2×1 DataFrame
│ Row │ a     │
│     │ Int64 │
├─────┼───────┤
│ 1   │ 2     │
│ 2   │ 3     │

julia> y = DataFrame(b = [3, 4])
2×1 DataFrame
│ Row │ b     │
│     │ Int64 │
├─────┼───────┤
│ 1   │ 3     │
│ 2   │ 4     │

julia> hcat(x, y)
2×2 DataFrame
│ Row │ a     │ b     │
│     │ Int64 │ Int64 │
├─────┼───────┼───────┤
│ 1   │ 2     │ 3     │
│ 2   │ 3     │ 4     │
4 Likes