Doubts about the submission of the solution

How am I supposed to submit the solution?When i try to write the scalar data into the excel file the each data value is skipped by one row?
Please some one can explain it to me.

1 Like

Make sure that the file format is exactly the same as that of the submission file, including the header names and their casing. Also check if your format of the numbers is Decimal/Number instead of scientific notation
Hope I have clarified your doubt.

Cheers!

Please can anybody tell me proper code meant to create/update a submission file with my solution,because I have tried it many times and it is not working . 3

Hey @Shubhankit-Tiwari-1738649599558824,
I assume you have predicted the values for X_test dataset.
First Create a dataframe with same format as you want in output file.
df = pd.Dataframe(y_pred, columns=['y])
After this dataframe, you can convert it to csv file using this command :
df.to_csv("filename.csv", index=False)

I hope this clears your doubt.
Thanks :slight_smile: