I have a data set in which there is a column known as Native Country which contain around 30000 records. Some are missing represented by NaN so I thoug
30000
NaN
Just call first element of series:
data['Native Country'].fillna(data['Native Country'].mode()[0], inplace=True)
or you can do the same with assisgnment:
data['Native Country'] = data['Native Country'].fillna(data['Native Country'].mode()[0])