Drop rows of df that have fewer than 2 non-missing (non-NaN)
values across its columns. Return the remaining rows in their original order.
Sample data:
df:
a b c
0 1.0 NaN 1.0
1 NaN NaN 2.0
2 3.0 3.0 3.0
3 NaN 4.0 NaN
solve(...)