I am trying to convert list of lists and some other number with in the lists to numpy array.
So far i have tried this but still the list carries over to the array:
ll = [['119', '222', '219', '293'], '4', ['179', '124', '500', '235'], '7']
arrays = np.array(ll)
The output is:
array([list(['119', '222', '219', '293']), '4', list(['179', '124', '500', '235']), '7'], dtype=object)
My desired output is something like this:
[(array([ 119, 222, 219, 293]), 4), (array([ 179, 124, 500, 235]), 7)]
Is there a way to do this. I have been trying to get this for the last two days.