Joining tables based on different column names

后端 未结 3 1136
借酒劲吻你
借酒劲吻你 2021-01-20 23:28

I was watching a video[1] by Greg Reda about Pandas to see what Pandas can do how it compares with data.table. I was surprised to learn how difficult it was to join tables in d

3条回答
  •  醉梦人生
    2021-01-21 00:16

    With reference to the Rdatatable github page, if you want to perform functions on your join rather than just merge tables, you can also do d1[d2, somefunc, on = "A==W"], where A is your column in d1 and W is your column in d2.

提交回复
热议问题