All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g2801_2900.s2882_drop_duplicate_rows.solution.py Maven / Gradle / Ivy

There is a newer version: 1.37
Show newest version
# #Easy #2023_12_23_Time_405_ms_(97.36%)_Space_60.2_MB_(75.25%)

import pandas as pd

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy