There is a 3d array:
Input:
[[[0,2,3,4]
[4,2,3,4]
[6,2,3,4]]
[[2,2,3,4]
[3,2,3,4]
[2,2,3,4]]]
How can I make a numpy array look like this?
rule: if array[:,:,0] < 3
Output:
[[[0,0,0,0]
[4,2,3,4]
[6,2,3,4]]
[[0,0,0,0]
[0,0,0,0]
[0,0,0,0]]]