The type function returns the data type of the selected column as a nominal value.
The attribute whose data type we want to return. The column parameter is mandatory.
The following example uses the adult dataset.
In the adult dataset, we have added a new type attribute, where the data type of the education_num attribute has been retrieved, using the formula
The data type has been correctly returned as integer (expressed as a nominal attribute as “integer “ is a string value.