Guest User

Untitled

a guest
Sep 26th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $ python
  2. Python 3.6.5 |Anaconda Inc.| (default, Apr 29 2018, 16:28:17)
  3. [GCC 7.2.0] on linux
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> import numpy as np
  6. >>> a = np.array([3,0,0,4,0,8])
  7. >>> a
  8. array ([3, 0, 0, 4, 0, 8])
  9. >>> a.dtype = bool
  10. >>> a
  11. array([ True, False, False, False, False, False, False, False, False,
  12. False, False, False, True, False, False, False, False, False,
  13. False, False, True, False, False, False])
  14. >>>
Add Comment
Please, Sign In to add comment