Hi @ptrblck, yes you say right. Thanks for your response.
when I am a newbie in python programming and I want to load the data according to the table of the article but I don’t know how to can do categorical training and testing the NSL_KDD dataset into(‘normal’, ‘dos’, ‘r2l’, ‘probe’, ‘u2r’).

I changed this line of code kdd_t[‘class’] = kdd_t[‘class’].replace(attack_map) to kdd_t[‘class’] = kdd[‘class’].replace(attack_map)  but I don’t know this changing is a right work for my target that shows in the above pictures.