pandas and NumPy 3 · Grouping and combining

Join two DataFrames

Join on a key, like SQL. how can be inner, left, right or outer.

pd.merge(orders, users, left_on="user_id", right_on="id", how="left")

Official pandas and NumPy 3 documentation

More grouping and combining commands

All grouping and combining commands · pandas and NumPy 3 cheatsheet

Was this page helpful?