Below there is my dictionary whose keys are 1,2,3. Each key has multiple values. I tried the following code to convert my dictionary to a numpy array but it is not working. Honestly, I don't know about formats so I just have 'i4' and 'f4' which I saw online. Please help.
My_data = {1: [1450.0, -80.0, 840.0, -220.0, 630.0, 780.0, -1140.0], 2: [1450.0, -80.0, 840.0, -220.0, 630.0, 780.0, -1140.0, 450.0, 730.0, -810.0, 390.0, -220.0, -1640.0, -590.0, -145.0, -420.0, 620.0, 450.0, -90.0, 990.0, -705],3:[ 720.0, -230.0, 460.0, 220.0, 710.0, -460.0, 90.0, -640.0, 870.0, -290.0, -2180.0, -790.0, 65.0, 70.0, 460.0] }
names = ['Abc','PL']
formats = ['i4','f4']
dtype = dict(names = names, formats=formats)
my_array = numpy.array(My_data.items(),dtype)