Note
Numpy (12) 본문
728x90
How to remove from one array those items that exist in another?
a = np.array([1,2,3,4,5])
b = np.array([5,6,7,8,9])
np.setdiff1d(a,b)
# output
array([1, 2, 3, 4])
'Numpy' 카테고리의 다른 글
Numpy (14) (0) | 2022.08.05 |
---|---|
Numpy (13) (0) | 2022.08.03 |
Numpy (11) (0) | 2022.07.31 |
Numpy (10) (0) | 2022.07.30 |
Numpy (9) (0) | 2022.07.29 |
Comments