2022-02-14 02:22:51 +00:00
|
|
|
---
|
|
|
|
title: dfr join
|
|
|
|
layout: command
|
2022-03-04 12:10:09 +00:00
|
|
|
version: 0.59.1
|
2022-02-14 02:22:51 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
Joins a dataframe using columns as reference
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> dfr join (dataframe) --left --right --type --suffix```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `dataframe`: right dataframe to join
|
|
|
|
- `--left {table}`: left column names to perform join
|
|
|
|
- `--right {table}`: right column names to perform join
|
|
|
|
- `--type {string}`: type of join. Inner by default
|
|
|
|
- `--suffix {string}`: suffix for the columns of the right dataframe
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
inner join dataframe
|
|
|
|
```shell
|
|
|
|
> let right = ([[a b c]; [1 2 5] [3 4 5] [5 6 6]] | dfr to-df);
|
|
|
|
$right | dfr join $right -l [a b] -r [a b]
|
|
|
|
```
|