열의 모든 값이 마스크 된 마스크 된 배열에서 열을 제거하고 싶습니다. 그래서 다음 예 :모든 값이 마스크 된 열 제거
>>> 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한다() 지정된 출력을 얻을 수?