how we can transform data in categorie?

goldengriffs
goldengriffs New Altair Community Member
edited November 5 in Community Q&A

hi dears,

i hava student performance dataset that must be categories in good,bad and average class.

how i can do it? which operators?

if value attribute <=10 then "bad"

if value attribute >=10 and <=15 then "average"

if value attribute >=15and <=20then "good"

for example,

rock=7

james=12

andesron= 17

rose=5

result:

rock= bad

james= average

anderson= good

rose=bad

 thanks

Tagged:

Best Answer

  • Thomas_Ott
    Thomas_Ott New Altair Community Member
    Answer ✓

    Looks like you'll need the Generate Attributes operator to do your expression evaluations. Just create a new column called "label" and then do a few if-then statements 

Answers

  • Thomas_Ott
    Thomas_Ott New Altair Community Member
    Answer ✓

    Looks like you'll need the Generate Attributes operator to do your expression evaluations. Just create a new column called "label" and then do a few if-then statements