Filling missing value

Question

In a dataset, various cells have 0 instead of nan. How to fill the zeroes with mean or median.

in progress 0
Priyabrata 55 years 0 Answers 722 views Master 0

Answers ( No )

  1. data=data.replace({‘col_name’: {0: mean_col_name}})
    print (data)

Leave an answer

Browse
Browse