application_vnd.jupyter.stderr_output_1.png
out = open('submission_heuristic.csv', 'w')
out.write('ChildId,GiftId\n')
for i in range(len(pred)):
    out.write(str(i) + ',' + str(pred[i]) + '\n')
out.close()