Premium problem142. Drop Rows Containing Any Missing Value

Easy Locked

Given a 2-D float array, return a new array containing only the rows with no np.nan in any column, preserving order.

Input

[[ 1.  2.]
 [nan  3.]
 [ 4.  5.]]

Output

[[1. 2.]
 [4. 5.]]

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)