this entry collects the solution files i have for drop duplicate rows. i may expand it with a fuller write-up later, but the implementation files are already here.
available solution files
- Python
drop-duplicate-rows/drop-duplicate-rows.py
notes and solution files for drop duplicate rows.
this entry collects the solution files i have for drop duplicate rows. i may expand it with a fuller write-up later, but the implementation files are already here.
drop-duplicate-rows/drop-duplicate-rows.pyimport pandas as pd
def dropDuplicateEmails(customers: pd.DataFrame) -> pd.DataFrame:
customers.drop_duplicates(subset = class="syntax-string">"email", keep = class="syntax-string">"first", inplace = True)
return customers