Skip to content

Glossary: pandas Basics

drop_duplicates

Also written: .drop_duplicates()

Removes repeated rows, keeping the first copy by default. `subset=` compares only some columns and `keep="last"` keeps the last copy.

Where the book teaches it

Related terms

duplicated