I'm trying to clean a dataset and observed few features are of type : non-null Float type. The values contain - NaN
I tried below code :
cleaned_customer_data.fillna(cleaned_customer_data.mean()).head()
This result with 0 record.
Also, i tried -
cleaned_customer_data.fillna(cleaned_customer_data.mean())
It doesn't change NaN values to mean.
Data Sample :
FEATURE1
--------
NaN
2.0
NaN
NaN
NaN
1.294
Am i doing something wrong here, please guide.