HF RL Explorer

Task: Lowercase a Pandas DataFrame String Column with Missing Values

Task: Lowercase a Pandas DataFrame String Column with Missing Values: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that converts a string column in a pandas DataFrame to lowercase while properly handling missing values (NaN). The solution should preserve NaN…

The task

You need to write a Python script that converts a string column in a pandas DataFrame to lowercase while properly handling missing values (NaN). The solution should preserve NaN values in their original form rather than causing errors or converting them to strings.

Part of PrimeIntellect/Terminal-Lego-15k.