I have multiple text files with reaction time results in them for different colours. I have extracted the ones i want to work with and found out the standard deviation and mean for these results. They are in multiple dictionaries within a larger dictionary. Next i am wanting to put them into a table of results. So far i can only get it to produce 3 columns and i need to add another 2 columns for SD and number of samples. without using pandas
this is the code i have so far, could someone please assist in how to add another 2 columns
data = [(k,*x) for k, v in res.items() for x in v.items()]
print ("ROI COLOUR MEAN SD")
for l in data:
print ("{:<14}{:<11}{}".format(l[0],l[1],l[2]))
My output from this code currently looks like this, where the ffam, lingualm and ppam are the means but then the SD is underneath instead of going under the SD part.
ROI COLOUR MEAN SD
ffam cope1 0.6525
ffam cope2 0.4146
ffam cope3 0.5896
ffam cope4 0.1521
ffam cope5 0.5317
lingualm cope1 -0.08865060000000001
lingualm cope2 -0.150985
lingualm cope3 -0.162005
lingualm cope4 -0.130845
lingualm cope5 -0.126411
ppam cope1 0.74836
ppam cope2 0.9444
ppam cope3 0.300482
ppam cope4 1.12435
ppam cope5 0.8332200000000001
ffa cope1 0.0
ffa cope2 0.0
ffa cope3 0.0
ffa cope4 0.0
ffa cope5 0.0
lingual cope1 0.18218909587360052
lingual cope2 0.19045722970000376
lingual cope3 0.156594265045052
lingual cope4 0.1723191040627823
lingual cope5 0.1327233022080147
ppa cope1 0.46169785834461047
ppa cope2 0.43539771473906475
ppa cope3 0.25656049991376306
ppa cope4 0.40710618332322096
ppa cope5 0.5046582384148702