HF RL Explorer

Task: Detecting Column Value Changes in Pandas DataFrame

Task: Detecting Column Value Changes in Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that reads a CSV file and identifies the rows where the value in column B changes from one value to another. The solution should use pandas and avoid explicit for loops…

The task

Write a Python script that reads a CSV file and identifies the rows where the value in column B changes from one value to another. The solution should use pandas and avoid explicit for loops (use vectorized operations or built-in pandas methods).

Part of PrimeIntellect/Terminal-Lego-15k.