Combining datasets
How to join two datasets
Open the datasets in VisiData.
a.
vd d1.tsv d2.tsvor
b. Pressoand enter a filepath for each file.- Press
Sto open up the Sheets Sheet. Through here, you can navigate to every sheet by pressingEnteron the row it is referenced in. - Navigate to the sheets you want the join, and set their shared columns as key columns with
!. - Press
Sto return to the Sheets sheet. Select the sheets you want to merge withs. - Optional: If performing a left outer join, use
Shift+JorShift+Kto reorder the sheets. The first sheet will be the one for whom all rows will be retained. Type
&to open the join-chooser, and select your desired jointype withEnter.
| jointype | description |
|---|---|
inner |
keeps only rows which match keys on all sheets |
outer |
keeps all rows from first selected sheet |
full |
keeps all rows from all sheets (union) |
diff |
keeps only rows NOT in all sheets |
extend |
keeps all rows and retain SheetType from first selected sheet |
merge |
Merges differences from other sheets into first sheet |
How to append two datasets
- Open the datasets with VisiData.
- Press
Shift+Sto open the Sheets sheet. - Use
sortto select the sheets to merge. - Type
&and pressEnteronappendto concatenate the selected datasets.


