Skip to content

Instantly share code, notes, and snippets.

@tcovert
Created June 10, 2016 15:30
Show Gist options
  • Save tcovert/59644b01465d2e6bfe80ace1a453bbca to your computer and use it in GitHub Desktop.
Save tcovert/59644b01465d2e6bfe80ace1a453bbca to your computer and use it in GitHub Desktop.
using DataFrames
df1 = DataFrame(v1 = rand(Int16, 10000),
v2 = rand(Int8, 10000),
v3 = randn(10000))
df2 = DataFrame(v1 = rand(Int16, 10000),
v2 = rand(Int8, 10000),
v4 = randn(10000))
# this works
df = join(df1, df2, on = [:v1, :v2], kind = :inner)
# this doesn't
pool!(df1, :v1)
pool!(df1, :v2)
pool!(df2, :v1)
pool!(df2, :v2)
df = join(df1, df2, on = [:v1, :v2], kind = :inner)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment