Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. (a == a.min(1, keepdims=True)).astype(int)
  2. #array([[1, 0, 0],
  3. # [0, 0, 1],
  4. # [0, 1, 0]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement