Julia 中的数据操作
Katerina Zahradova
Instructor

更多连接信息见此处 here
# 对 chocolates 和 chocolate_companies 做左连接,使用 company 列
leftjoin(chocolates, chocolate_companies, on = :company)
# 对 chocolates 和 chocolate_companies 做左连接,使用 company 与 company_name
leftjoin(chocolates, chocolate_companies, on = :company => :company_name)
# 对 chocolates 和 chocolate_companies 做左连接
# 使用 company 和 company_location 列
leftjoin(chocolates, chocolate_companies,
on = [:company => :company, :company_location => :company_location])
leftjoin(left, right, on = :col):
left 的所有行和列,以及在 col 上与 left 匹配的 right 行leftjoin(left, right, on = :col_left => :col_right):
leftjoin(left, right, on = [:c1_l => :c1_r, ...]):
Julia 中的数据操作