I'm migrating my MATLAB code to phyton with numpy and scipy.
And I'm looking for a simple order to short a MxM matrix (or 2D array)
Example, I whish to remove all "0" from matrix at column 3 and row 3
[[a a 0 a]
[a a 0 a]
[0 0 0 0]
[a a 0 a]]
And take this matrix
[[a a a]
[a a a]
[a a a]]
With only one line of code in numpy or scipy, if possible.