2882. Drop Duplicate Rows

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 2882

import pandas as pd


def dropDuplicateEmails(customers: pd.DataFrame) -> pd.DataFrame:
    return customers.drop_duplicates(subset=['email'])