HF RL Explorer

Task: Replace Invalid Values with None in Pandas DataFrame

Task: Replace Invalid Values with None in Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). In data processing workflows, you often need to replace invalid placeholder values (like '-' ) with None for database compatibility. The standard df.replace('-', None) method in Pandas…

The task

In data processing workflows, you often need to replace invalid placeholder values (like `'-'`) with `None` for database compatibility. The standard `df.replace('-', None)` method in Pandas produces unexpected results due to how Pandas interprets `None` in the replace method.

Part of PrimeIntellect/Terminal-Lego-15k.