Air quality prediction

Is there any solution code to the problem. My code shows wrong result

This one works fine
have a look

You should share what is not working in your code. Have you tried debugging every function.