-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
releasedIncluded in a releaseIncluded in a release
Description
Is your feature request related to a problem?
Sometimes a dataset consists of multiple tables.
Desired solution
Add a new method Table.join that performs a join.
- Parameters:
right: Table- The other table to join.left_names: str | list[str]- The names of the columns to join on in the left table (receiver)right_names: str | list[str]- The names of the columns to join on in the right table (rightparameter)- Keyword-only
mode: literal["inner", "left", "outer"] = "inner"- Whether an inner/left/outer join should be performed.
- Exceptions:
- Call
_check_columns_existto ensure that allleft_namesexist in the left table. - Call
_check_columns_existto ensure that allright_namesexist in the right table. - Raise if the length of
left_namesandright_namesdiffers.
- Call
- Returns:
- A new table containing the result of the join.
Use DataFrame.join to implement this operation.
Possible alternatives (optional)
We could also add a join mode "right", but that is equivalent to swapping the left and right table.
Screenshots (optional)
No response
Additional Context (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
releasedIncluded in a releaseIncluded in a release
Type
Projects
Status
✔️ Done