Task: Remove Non-Numeric Rows from NumPy Array
Task: Remove Non-Numeric Rows from NumPy Array: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that reads a NumPy array from a file and removes all rows that contain non-numeric values. Non-numeric values include: - Missing values (empty entries) - NaN (Not a…
The task
You need to write a Python script that reads a NumPy array from a file and removes all rows that contain non-numeric values. Non-numeric values include: - Missing values (empty entries) - `NaN` (Not a Number) - String representations like `"NA"`, `"NaN"`, `"null"`, etc. - Any other non-numeric strings
Part of PrimeIntellect/Terminal-Lego-15k.