I tried with fillna(data[].value_counts().index[0],inplace=True) Is it ok or is there any loss in data.