I have a multidimensional list of tuples of different sizes in a list and I am trying to convert that to a 1-D array, but I keep getting an error. If my list looks like:
rain2 = [[(298.0, 345.0, 412.0)], [(421.0, 203.0)], [(491.0,)]]
How do I convert that to a 1-D array? I tried:
chain = np.asarray(rain2, dtype=float)
But I get the error:
ValueError: setting an array element with a sequence.
Thanks!