我想從屏蔽數組中刪除列中的每個值都被屏蔽的列。因此,在下面的例子:刪除每個值被屏蔽的列
>>> import numpy as np
>>> test = np.array([[1,0,0],[0,3,0],[1,4,0]])
>>> test = np.ma.masked_equal(test,0)
>>> test
[[1 -- --]
[-- 3 --]
[1 4 --]],
>>> np.somefunction(test)
[[1 --]
[-- 3 ]
[1 4 ]]
又該np.somefunction()是獲得給定輸出?