HF RL Explorer

Task: Fix OneHotEncoder Usage with Pandas DataFrame

Task: Fix OneHotEncoder Usage with Pandas DataFrame: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that correctly applies Scikit-Learn's OneHotEncoder to a Pandas DataFrame column containing string categories, and produces a new DataFrame with the one-hot encoded columns…

The task

Write a Python script that correctly applies Scikit-Learn's `OneHotEncoder` to a Pandas DataFrame column containing string categories, and produces a new DataFrame with the one-hot encoded columns replacing the original column.

Part of PrimeIntellect/Terminal-Lego-15k.