I\'m trying to write the values of an array to a .csv file in python. But when I open the file in excel, the data is shown in one row. I want to have one column where each m
Try this:
for i in range(len(testLabels)): result_file = open('filePath.csv', 'a') result_file.write("{}{}".format(testLabels[i], '\n'))