Share
Filling missing value
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
In a dataset, various cells have 0 instead of nan. How to fill the zeroes with mean or median.
Answers ( No )
data=data.replace({‘col_name’: {0: mean_col_name}})
print (data)