Task: Interpolate NaN Values in a NumPy Array
Task: Interpolate NaN Values in a NumPy Array: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that replaces all NaN (Not a Number) values in a NumPy array with linearly interpolated values based on the surrounding non-NaN elements.
The task
Create a Python script that replaces all NaN (Not a Number) values in a NumPy array with linearly interpolated values based on the surrounding non-NaN elements.
Part of PrimeIntellect/Terminal-Lego-15k.