I have an array of tuples like:
myArr=Ttest_indResult(statistic=array([ -5.27693006, 0., 0., 0.15105006,]),
pvalue=array([ 2.31902785e-06, 1.00000000e+00, 1.00000000e+00,
8.80460569e-01,)]))
I want to add the values myArr[1][0],myArr[1][1],myArr[1][2] and myArr[1][3]
to a new data frame:
df_tup = pd.DataFrame()
df_tup['t']=df_tup['t'].apply(lambda x: myArr[1][x]...not sure)
not sure how to iterate through the array while adding a value to the column t.