Task: Get First Row of Each Group in Pandas DataFrame
Task: Get First Row of Each Group in Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that processes a pandas DataFrame and extracts the first row of each group when grouped by a specific column.
The task
You need to write a Python script that processes a pandas DataFrame and extracts the first row of each group when grouped by a specific column.
Part of PrimeIntellect/Terminal-Lego-15k.