Pandas enchem com mediana da coluna
df['X'].fillna(df['X'].median(), inplace=True)
Babylonian Ho
df['X'].fillna(df['X'].median(), inplace=True)