d=[[[1],[1],[1]]]
There is a list like the one above.
I wanted the list to be [1,1,1]
.
d=[[[1],[1],[1]]]
print(np.shape(d))
d_1=[]
for item in d:
d_1.extend(item)
print(d_1)
d_2=[]
for item in d_1:
d_2.extend(item)
print(d_2)
>>>[1,1,1]
I did it like this but is there a more simple way?