I have a few lists which I all want to export to the same .txt file.
So far I only export 3 of the lists using
my_array=numpy.array(listofrandomizedconditions)
my_array2=numpy.array(inputsuser)
my_array3=numpy.array(reactiontimesuser)
combined=numpy.column_stack([my_array,my_array2,my_array3])
numpy.savetxt(participantnumber + ".txt", combined, delimiter=" ", fmt ="%-12s")
This gives me an output like
CongruentPositief no input or wrong button no reactiontime
IncongruentNegPos no input or wrong button no reactiontime
Since this is quite hard to read I want to add a tab between all the different lists.
Also I want to add a few lists which aren't 192 elements long unlike the first 3, but then I get an error that every array has to be the same size. Is there a way around this?