I have an array of 2d arrays like
+------+ +------+
| | | |
| A | | B |
| | | |
+------+ +------+
and I want to "delete" the outermost parentheses, as in to get
+------+------+
| | |
| A | B |
| | |
+------+------+
for example I have
[[[1,1,1],[2,2,2]],[[3,3,3],[4,4,4]]]
and I want to get
[[1,1,1,3,3,3],[2,2,2,4,4,4]]
in other words, I need to make an array of shape (7,3,1000) into (3,7000) by appending those 7 in chain
how to go about it?