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

Implement spreadsheet joins #157

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Conversation

rokostik
Copy link
Contributor

This PR implements two join functions on spreadsheets: left-join and inner-join. The returned spreadsheet contains all the columns from both spreadsheets and if there's an overlap in names the overlapping from the second spreadsheet gets a _2 suffix.

Also, there's a problem with add-indexes! (renamed from add-index! since you can add multiple): for some reason the spreadsheet isn't changed in place. I didn't figure out why yet but I added the indexes? function to help with debugging.

Copy link
Owner

@refaktor refaktor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great changes! Thanks also for docstrings and tests!

I will test add-indexes! and try to figure it out, great for noticing it.

@refaktor refaktor merged commit ada2ef3 into refaktor:main Mar 16, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants