HF RL Explorer

Task: Convert Categorical Column to Numeric Indices in Pandas

Task: Convert Categorical Column to Numeric Indices in Pandas: a task in Terminal-Lego-15k (Harbor dataset). You have a CSV file containing country codes and temperature data. Your task is to write a Python script that converts the categorical country code column ( cc ) into numeric indices…

The task

You have a CSV file containing country codes and temperature data. Your task is to write a Python script that converts the categorical country code column (`cc`) into numeric indices (integer codes) using Pandas' categorical data capabilities.

Part of PrimeIntellect/Terminal-Lego-15k.