HF RL Explorer

Task: Handle Mixed Data Types with NumPy genfromtxt

Task: Handle Mixed Data Types with NumPy genfromtxt: a task in Terminal-Lego-15k (Harbor dataset). When using numpy.genfromtxt() to read CSV data containing mixed types (strings and numbers), the string columns are read as nan by default. Your task is to write a Python script that correctly reads…

The task

When using `numpy.genfromtxt()` to read CSV data containing mixed types (strings and numbers), the string columns are read as `nan` by default. Your task is to write a Python script that correctly reads a CSV file where the first column contains string labels and the remaining columns contain numeric values.

Part of PrimeIntellect/Terminal-Lego-15k.