pandas · Lesson 6.1 · Pro

merge

Join two tables on a shared key, keeping only matches or every row from one side.

In this lesson

  1. Inner merge: only matches
  2. Left merge: keep everything on the left
  3. Different key names
  4. Merge, then summarise