I was completing the code, for going through a pandas dataframe, to identify the column with maximum Nan Values, and replacing them with 1.
Below is the code: