# Joining Tables with merge

merge lines up the rows of two tables by a key column they share, the job a spreadsheet's VLOOKUP does, with on= when the key has the same name in both, left_on and right_on when it doesn't, and suffixes to tell apart other columns the two tables share.

![Cheat sheet: Joining Tables with merge](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/bc9582623de14fbeaf2cbe8ff2106e9f.webp)

- Category: Data Analysis
- Level: Apprentice
- Tags: database, Key (database), merge, Primary Key, python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/pandas-merge-cheat-sheet
