df = DataFrame(A = 1:4, B = ["M", "F", "F", "M"])
4×2 DataFrame
Row │ A B
│ Int64 String
─────┼───────────────
1 │ 1 M
2 │ 2 F
3 │ 3 F
4 │ 4 M
julia> df2 = DataFrame(A = 1:4, C = ["M", "F", "F", "M"])
4×2 DataFrame
Row │ A C
│ Int64 String
─────┼───────────────
1 │ 1 M
2 │ 2 F
3 │ 3 F
4 │ 4 M
julia> leftjoin(df,df2,on=:A)
4×3 DataFrame
Row │ A B C
│ Int64 String String?
─────┼────────────────────────
1 │ 1 M M
2 │ 2 F F
3 │ 3 F F
4 │ 4 M M
What version of Dataframes are you using? I am on v0.22.5 with 1.6.0-rc1
So I tried to update package, but it wouldn’t upgrade to a higher version. I wiped out the entire installation and re-installed 1.6-rc1 and then now it works again. Thanks.