Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
how to replace operator
sgnarkhede2016
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
Find more posts tagged with
AI Studio
Accepted answers
All comments
kayman
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.
BalazsBaranyRM
However, the canonical operator for this type of replacements is "Map".
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups