dropna' function help to find the code example Example: dropna pandas >>> df.dropna(axis='columns') name 0 Alfred 1 Batman 2 Catwoman