HF RL Explorer

Task: Remove NaN Values from a NumPy Array

Task: Remove NaN Values from a NumPy Array: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that removes all NaN (Not a Number) values from a NumPy array. The script should demonstrate how to filter out NaN values and return a clean array containing only valid numeric values.

The task

Write a Python script that removes all NaN (Not a Number) values from a NumPy array. The script should demonstrate how to filter out NaN values and return a clean array containing only valid numeric values.

Part of PrimeIntellect/Terminal-Lego-15k.