I have a list of lists I\'ve read from a file. Each of the inner lists is six elements in length, and has 3 strings and 5 floats. How do I convert this list of lists into
I had the same problem, but tuples are no solution. So I found (python 3.7.1):
ll = [['one','two',1,1.23],['four','five',4,34.3],['six','seven',4,34.3]] np.array(ll, dtype = 'object')
result:
array([['one', 'two', 1, 1.23], ['four', 'five', 4, 34.3], ['six', 'seven', 4, 34.3]], dtype=object)