xxxxxxxxxx
import pandas as pd
df = pd.read_csv('File_name_path') # Enter the file_name or path
freq = df.mode(axis = 0 , is_numeric = False, dropna = True)
''' where axis = 0 for column
1 for row
is_numeric = True --> consider only numeric type of column/row
False --> consider only non-numeric type of column/row
dropna = True --> ignore NaN values in mode
False --> Consider Nan values in mode