decideType function in the Factory
Assigns the correct data type to an attribute, depending on the values it contains.
Parameters Parameter Description column The attribute for which we want to define the correct data type. The column parameter is mandatory. Example The following example uses the Age_BMI dataset. Description Screenshot In the Age_BMI dataset, we have changed the data type of the Age attribute to nominal, for the sake of the exercise. We can now use the decideType function to define the correct data type for the attribute, according to the values it contains. The function is simply The integer data type has been correctly redefined.decideType(column)
decideType($"Age")
.