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.