Task: Drop All Duplicate Rows Across Multiple Columns in Python Pandas
Task: Drop All Duplicate Rows Across Multiple Columns in Python Pandas: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that removes all rows from a pandas DataFrame where duplicates exist across a specified subset of columns. Unlike the standard drop duplicates()…
The task
You need to write a Python script that removes all rows from a pandas DataFrame where duplicates exist across a specified subset of columns. Unlike the standard `drop_duplicates()` which keeps one copy of duplicates, this task requires dropping **all** rows that have duplicates (including the first occurrence).
Part of PrimeIntellect/Terminal-Lego-15k.