when i applied algorithm on test data i am getting an array of numbers which are in exponential format and i don’t know how to export this array as a .csv file with a head
How to upload as in given format
Hey,
After getting the results for X_test data you need to follow these 2 lines to convert into csv
df = pd.DataFrame(data=y_test, columns=["y"]) df.to_csv("y_test.csv", index=False)
Thanks
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.