HF RL Explorer

Task: Lambda with Conditional Logic in Pandas DataFrame

Task: Lambda with Conditional Logic in Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). You need to apply a conditional transformation to a Pandas DataFrame column using lambda functions with multiple conditions (if...elif...else logic). Since standard lambda syntax doesn't directly…

The task

You need to apply a conditional transformation to a Pandas DataFrame column using lambda functions with multiple conditions (if...elif...else logic). Since standard lambda syntax doesn't directly support elif, you need to find alternative approaches.

Part of PrimeIntellect/Terminal-Lego-15k.