Gmousse / dataframe-js

No Maintenance Intended
https://gmousse.gitbooks.io/dataframe-js/
MIT License
460 stars 38 forks source link

Use columns with different names on join #60

Closed ollita7 closed 4 years ago

ollita7 commented 6 years ago

Im trying to use join and i want to specify the columns that i want to join between dfs.

df.join(df2, 'column1', 'full')

I asume if i do the following join that column1 name exist in both dfs rigth? Is it posible to join specifing the columns foreach dfs?

For example I want to join df with df2 on df.column1 = df.column3

Thanks!

Gmousse commented 6 years ago

Hi @ollita7, Indeed it s not possible right now. I will add this in improvments.

However you can use withdf.rename(youroldcolumn, yourjoincolumn) awaiting a next release.

Gmousse commented 4 years ago

Closed due to inactivity