calculate highest frequency or mode in pandas dataframe

#Calculating mode of a column
#NB: This will show the index and value. To show only the value:

#Calculating mode of an entire dataframe or more than one series

#These arguments can be parsed:
df.mode(axis=0, numeric_only=False, dropna=True)
axis # axis=0 for rows and axis=1 for columns
numeric_only # False considers all values and; =True ignores all non-numerics.
dropna # =False considers all NaN values and; =True ignores all NaN values.

Here is what the above code is Doing:
1. It’s calculating the mode of each column.
2. It’s ignoring all non-numerics.
3. It’s ignoring all NaN values.