Polars 2 · Expressions, grouping and joins
Join two DataFrames
Combine DataFrames on a key. how can be inner, left, full, semi or anti.
teams = pl.DataFrame({"team": ["a", "b"], "city": ["Rome", "Oslo"]})
df.join(teams, on="team", how="left")
Official Polars 2 documentation
More expressions, grouping and joins commands
- Group and aggregate
- Conditional columns
- Handle missing values
- Work with strings
- Work with dates
- Window functions
All expressions, grouping and joins commands · Polars 2 cheatsheet