The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
how to replace operator
sgnarkhede2016
Member Posts: 152
Contributor II
Contributor II
in Help
Hello,
I have column "Gender" column with values "Male" and "female"
I want to replace Male with "M" and female with "F"
how can i do this
I have column "Gender" column with values "Male" and "female"
I want to replace Male with "M" and female with "F"
how can i do this
0
Answers
-
Many options. The easiest is to use the replace operator twice, first to replace female with F and then Male with M.
Another would be to use the generate attribute operator, and use some combined functions.
You generate the attribute Gender (you actually recreate it) and use prefix(upper([Gender]), 1) for instance.0 -
BalazsBarany Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955
Unicorn
However, the canonical operator for this type of replacements is "Map".0
