I have non numeric data, e.g. with categorical text columns as well as numeric columns. But the following line
self.imputer = SimpleImputer(strategy='mean')
X = self.imputer.fit_transform(X)
gives the error:
ValueError: Cannot use mean strategy with non-numeric data
I have non numeric data, e.g. with categorical text columns as well as numeric columns. But the following line
gives the error: