I have a text file with each line that looks like this :
[204, -12, -1016, 1]
[208, -32, -976, 1]
[192, -24, -1008, 1]
I need to convert this into a Numpy array like this :
data = [[204, -12, -1016, 1], [208, -32, -976, 1], [192, -24, -1008, 1]]
such that calling data[0]
will give [204, -12, -1016, 1]
and calling data[0][1]
will give -12
Is it possible to do it?