data.dropna(how='any',axis=0,thresh=2) code example
Example: dropna pandas
>>> df.dropna(axis='columns')
name
0 Alfred
1 Batman
2 Catwoman
>>> df.dropna(axis='columns')
name
0 Alfred
1 Batman
2 Catwoman