Predicting Income with Random Forests: Task :5 ,6

I have written code in properly but I am getting key error. What is this reason behind? seeing below the snippet…

Could you please include a link to the project/lesson as per- FAQ: How to ask good questions and get good answers and the start of your error code so others can at least see what line is causing the problem.

i have the same question. it says that the column doesn’t have the index of “income”.i think there has some bug in this project

just now i find the reason for this problem. you need to add a space(" “)before “income”,“capital-gain”, " capital-loss”, " hours-per-week"and" sex"