Skip to content

Glossary: pandas Beyond the Basics

drop_duplicates

Also written: .drop_duplicates()

Keeps one row for each distinct value (or combination) in the columns you name. It turns order lines into one row per order, or customer rows into one per customer.

Where the book teaches it

Related terms

nuniqueKey