Skip to content
Advertisement

Remove rows in 3D numpy array

I need to remove some rows from a 3D numpy array. For exampe:

JavaScript

and I want to remove the third row of both pages of the matrix in order to obtain something like:

JavaScript

I have tried with

JavaScript

but I can’t obtain what I need.

Advertisement

Answer

axis should 1.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement