I have one imputation method to do mean, median and mode operation but this getting failed if column data type is not in Double/Float.
My java code:
Imputer imputer = new Imputer().setInputCol("amount").setOutputCol("amount);
imputer.setStrategy("mean");
ImputerModel model = imputer.fit(dataset);
model.transform(dataset);
Is there any way to handle this
I am using java