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

How to update table rows based on another table? #38

Closed
ericemc3 opened this issue Dec 3, 2020 · 2 comments
Closed

How to update table rows based on another table? #38

ericemc3 opened this issue Dec 3, 2020 · 2 comments
Labels
question Further information is requested

Comments

@ericemc3
Copy link

ericemc3 commented Dec 3, 2020

As an extension to the join functions,
i find these tidyverse functions really useful : https://dplyr.tidyverse.org/reference/rows.html

Especially 2 of them:
rows_update : like SQL UPDATE
rows_upsert : UPDATE and also INSERT missing rows

@jheer jheer added the question Further information is requested label Dec 3, 2020
@jheer jheer changed the title updating a table with another table How to update table rows based on another table? Dec 3, 2020
@jheer
Copy link
Member

jheer commented Dec 3, 2020

Thanks! Arquero does not provide these methods, but the included verbs can be used to perform nearly identical operations. To demonstrate, here is a notebook that mirrors the dplyr row manipulation documentation examples: https://observablehq.com/@uwdata/arquero-row-manipulation

And, of course, the standard concat and union verbs can also perform "inserts".

@jheer jheer closed this as completed Dec 3, 2020
@ericemc3
Copy link
Author

ericemc3 commented Dec 4, 2020

Thank you once again for the examples and the great documentation effort.

Here is my own exploitation of these examples :
https://observablehq.com/@ericmauviere/arquero-table-utils

By the way, i find your edge, hconcat methods truly expressive!

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

No branches or pull requests

2 participants