Drop Duplicate Row
In this lesson, we learn how to remove duplicate rows from a DataFrame object.
We'll cover the following
Removing duplicate rows from a dataset is a very common task during data cleaning. Sometimes the row is dropped when the whole row is a duplicate. In other cases, we only drop those rows based on selected columns.
pandas provides a powerful and handy function, drop_duplicates
. Let’s see how to use it.
Get hands-on with 1400+ tech skills courses.