I am getting an error while running the following code, how do I fix it?
Error:
csv.Error: iterable expected, not numpy.int64
y_test = np.array(test_labels)
print('y_test_labels:', y_test.shape) # (230,123)
with open('/content/drive/My Drive/GEINet_and_PEINet/VGG_CSV/test.csv', mode='w') as employee_file:
employee_writer = csv.writer(employee_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
#employee_writer.writerow(y_test)
x,y = y_test.shape
print('x: ',x)
for num in range(0, x):
employee_writer.writerows(y_test[num,:])