import pandas as pd import numpy as np data = pd.read_csv("train.csv", index_col="Loan_ID")
#First we import scipy function to determine the mode from scipy.stats import mode mode(data['Gender'])