Initializing playground…
← Back to roadmap

join: label-based DataFrame join

join(left, right, options?) aligns two DataFrames by their index labels (or a key column). Unlike the general-purpose merge(), join() defaults to a left join on index — the idiomatic way to combine DataFrames that already share an index.

Left join (default)

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

Inner / outer / right join

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

Overlapping columns — use lsuffix / rsuffix

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

Join on a column key

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

joinAll — chain multiple joins

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

crossJoin — Cartesian product

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent