I am having a data frame that is having a column named as the job with different categories like- Manager, Supervisor, SelfEmployed, Official, Highly professional employee, Low skilled worker, Unskilled worker. From that data frame, I would like to add a new column with a column name as the class where value 1 for high-class workers and 2 for low-class workers.
The data frame should look like:
head(df)
# Job Class
# Manager 1
# Supervisor 1
# Low skilled worker 2
# Low skilled worker 2
# Unskilled worker 2
# Manager 1