pandas · Lesson 4.2 · Pro

Duplicates

Spot repeated rows, drop them, and keep the right copy when the same thing was recorded more than once.

In this lesson

  1. Exact duplicates
  2. Duplicates by key
  3. Keep the latest copy
  4. Look before you drop