python – Cannot properly dimension a dict of numpy arrays

I have this following data.

column 0 is a text, column 1 is an array of arrays

inabb is my dict name

for i in range(len(t_df)):
    if t_df.iloc(i)(0) in inabb.keys():
        inabb(t_df.iloc(i)(0)) = np.vstack((inabb(t_df.iloc(i)(0)),(t_df.iloc(i)(1))))
    else:
        inabb(t_df.iloc(i)(0)) = (t_df.iloc(i)(1))

Below is a snippet of the output

{'1704_CG08302001.json': array((((0.47488073, 0.11274771, 0.53121686, 0.16514863)),
 
        ((0.42959082, 0.5500572 , 0.49034557, 0.60341084)),
 
        ((0.16006097, 0.1384718 , 0.22412956, 0.19182546)),
 
        ((0.10593408, 0.72917306, 0.16779338, 0.7834794 ))), dtype=float32),
 '1704_CG08302002.json': (array(((0.5024965 , 0.5310023 , 0.55993724, 0.58054495)), dtype=float32)),
 '1704_CG08302003.json': array((((0.33459264, 0.02700076, 0.38651025, 0.06987424)),
 
        ((0.5245891 , 0.03366997, 0.5776113 , 0.07844894))), dtype=float32),
 '1704_CG08302004.json': array((((0.16889802, 0.24899009, 0.21750176, 0.2880526 )),
 
        ((0.20756009, 0.6319932 , 0.25837308, 0.67391384)),
 
        ((0.52127516, 0.07368521, 0.5444724 , 0.11655869)),
 
        ((0.40528896, 0.52528584, 0.45499736, 0.5681593 ))), dtype=float32)

What I need is the values to all be of the same array dimensions, either a 3D array, or preferably a (N,4) shape numpy array.

I have tried different code but cannot align the dimensionality. The problem comes when there is no ‘np.vstack()’ and only one array is input, it is not in the same format as the other arrays for array>len(1)

You can see this in the second key value pair below.