How can I assign a values to a non-numeric or a categorical attribute?
Mayanc
New Altair Community Member
For example: "Yes" = 0, "No" = 1, and "Maybe" = 2
Please assist. Thank You!
Please assist. Thank You!
Tagged:
0
Best Answer
-
Hi @Mayanc,
You can use the Map operator for this task.
Please check the process in attached file.
EDIT :
Please use Guess Types operator after the Map operator to retrieve your attribute as "integer" (instead of "nominal") if needed.
Regards,
Lionel0
Answers
-
Hi @Mayanc,
You can use the Map operator for this task.
Please check the process in attached file.
EDIT :
Please use Guess Types operator after the Map operator to retrieve your attribute as "integer" (instead of "nominal") if needed.
Regards,
Lionel0 -
0