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

Address Matching Conditional on value of another column #194

Open
konsbn opened this issue Jun 15, 2023 · 1 comment
Open

Address Matching Conditional on value of another column #194

konsbn opened this issue Jun 15, 2023 · 1 comment

Comments

@konsbn
Copy link

konsbn commented Jun 15, 2023

I have datasets like this
Dataset A

first_name last_name address change_add
john smith PO BOX 123 1
adam kay 23 MAGNOLIA DR 0
boris becker 56 RYDE PARK 0

Dataset B

first_name last_name address
john smith JUPITER AVENUE
adam kay 23 MAGNOLIA DR
boris becker 56 RYDE PARK

Now I want to match these two tables. I'll compare them on first_name , last_name and address . However in case of john smith the change_add flag being 1 implies that he has changed his address in that case even different address should be matched.
I am unable to figure out a way how to do this using the CompareBaseClass please help me solve this problem. Thanks

@aflaxman
Copy link

I don't know how to solve this problem, but I wanted to see how my new simulated data might help me try it out. Here is a colab notebook that tries it out.

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

No branches or pull requests

2 participants