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