Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Transformation in "on" keyboard when joining dataframes #3363

Open
eoteroe opened this issue Jul 27, 2023 · 4 comments
Open
Labels
Milestone

Comments

@eoteroe
Copy link

eoteroe commented Jul 27, 2023

df1=DataFrame(N=["JOHN", "PETER"] ,value=[1,2])
df2=DataFrame(n=["john","peter"],value2=[3,4])

want something like:
leftjoin( df1 , df2, on=[ (:N=>lowercase) => :n])

@bkamins bkamins added this to the 1.7 milestone Jul 27, 2023
@bkamins
Copy link
Member

bkamins commented Jul 27, 2023

The way we will likely implement it is a join allowing arbitrary matching function.

How performance-critical is your request? (i.e. do you need speed or having functionality there is enough?)

@eoteroe
Copy link
Author

eoteroe commented Jul 27, 2023

Most of the cases I need it this, it is functionality the principal request. Thank you for your consideration.

@bkamins
Copy link
Member

bkamins commented Jul 27, 2023

Yes, but we need to design API that is general enough (otherwise the number of things that users would need to learn would be too large). And that is a challenge here. For time being you can use https://gitlab.com/aplavin/FlexiJoins.jl (or just create a temporary column to match against).

@eoteroe
Copy link
Author

eoteroe commented Jul 28, 2023

Excellent Bogumil. I didt'n know about this package. I am glad Julia is getting noticed. Packages are increasing. Again, thank you for the consideration of this feature. I'd say DataFrames is one hook for many Data analysts who are trying Julia, and every improvement you and the contributors make are really welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants