Display my outcome

How do i display my outcome of 0 and 1 in diabetes challenge in new csv file?

  1. From your knn model get predictions in form of array.
  2. Make a pandas dataframe of that array or dictionary with column name ‘Outcome’.
  3. Then save this dataframe to csv file using to_csv() function. Remember to keep the argument index=False while saving to csv.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.