0 1 2 3 4
0 2.0 None None None 21041.0
1 1.0 None None None 3003.0
2 2.0 None None None 1210.0
3 NaN None None None NaN
4 2 None None None NaN
5 NaN None None None NaN
6 NaN None None None NaN
So I would drop 5 and 6 but keep 3, even though all values are NaN.
I know of:
df.dropna(axis = 0, how = 'all', inplace = True)
This would delete 3 as well. I guess I need to combine with some other operation.