Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Input:
Name age_group(in yrs)
Aa 10-20
Bb 50-60
Cc 20-30
Output:
Name 10-20 20-30 30-40 50-60 60-70 70-80 80-90
Aa 1 0 0 0 0 0 0
Bb 0 0 0 1 0 0 0
Cc 0 1 0 0 0 0 0
Please help me out
Hi,
Since your output groups are pretty static (7 groups), you can add if else condition to check whether the incoming data is matching to the expected value for that group. If its matching, you can assign 1 else 0.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved