decideType function

The decideType function assigns the correct data type to an attribute.


Parameters

decideType(column)

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 decideType($"Age").

The integer data type has been correctly redefined.