I'm very new to Python, and practising with two different dataframe. While .fillna() function worked perfectly to 1st dataframe, and replaced all the NaN Values to median as intended, but shockingly the same function did not work to the 2nd dataframe and still having all the NaN values. furthermore, both columns have float64 datatype. Here is the code I wrote-
median_age = dataframe['age'].median()
print('median',median_age)
dataframe['age'].fillna(median_age, inplace = True)
Is there any chance I got two different type of 'NaN' values in two different dataset? if so what is it and how it can be dealt with? Any suggestion will help and will be much appreciated. Thanks