#axis = 0 for mode of columns #axis = 1 for mode of rows df.mode(axis=0, numeric_only=False, dropna=True)