I have following code to output a dataFrame:
output = pd.DataFrame({"id":id_test, "hum":y_pred})
output.to_csv("myOutput.csv", index=False)
Then in myOutput.csv, I got hum as the first column, id as the second column. Is there a way to make id the first column instead? Thanks!