Skip to content

2882. Drop Duplicate Rows 👍

1
2
3
4
5
6
import pandas as pd


def dropDuplicateEmails(customers: pd.DataFrame) -> pd.DataFrame:
  customers.drop_duplicates(subset='email', keep='first', inplace=True)
  return customers