aapatel09 / handson-unsupervised-learning

Code for Hands-on Unsupervised Learning Using Python (O'Reilly Media)
651 stars 324 forks source link

Group segmentation #36

Open dydavuth opened 1 year ago

dydavuth commented 1 year ago

NameError Traceback (most recent call last)

in ----> 1 im = impute.SimpleImputer(strategy='mean') 2 data.loc[:,fillWithMean] = im.fit_transform(data[fillWithMean]) 3 4 data.loc[:,fillWithZero] = data.loc[:,fillWithZero].fillna(value=0,axis=1) NameError: name 'impute' is not defined