October 2019
Beginner to intermediate
674 pages
16h 43m
English
This replaces the missing value with a number that makes sense.
There are various ways in which imputation can be performed. Some of them are as follows:
data.fillna(0)
data.fillna('text')
data['body'].fillna(0)
data['age'].fillna(data['age'].mean())
data['age'].fillna(method='ffill')
The following is the output:
Read now
Unlock full access