Task: Modifying a Subset of Rows in a Pandas DataFrame
Task: Modifying a Subset of Rows in a Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that modifies a pandas DataFrame so that column B is set to NaN whenever the corresponding value in column A is 0 .
The task
You need to write a Python script that modifies a pandas DataFrame so that column `B` is set to `NaN` whenever the corresponding value in column `A` is `0`.
Part of PrimeIntellect/Terminal-Lego-15k.