Problem in Diabetes Classification challenge

This is my code - https://ide.codingblocks.com/s/244666 . I am able to create a csv file of output of test dataset, but I am not able to write the head of column as Output in my csv file. Please tell where is the error.

Hey @abhaygarg2001, please upload your code on google drive and share the link here. I’ll have a look at the code.