dropna rows in pandas dataframe code example
Example: drop columns with nan pandas
>>> df.dropna(axis='columns')
name
0 Alfred
1 Batman
2 Catwoman
>>> df.dropna(axis='columns')
name
0 Alfred
1 Batman
2 Catwoman