Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ python
- Python 3.6.5 |Anaconda Inc.| (default, Apr 29 2018, 16:28:17)
- [GCC 7.2.0] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import numpy as np
- >>> a = np.array([3,0,0,4,0,8])
- >>> a
- array ([3, 0, 0, 4, 0, 8])
- >>> a.dtype = bool
- >>> a
- array([ True, False, False, False, False, False, False, False, False,
- False, False, False, True, False, False, False, False, False,
- False, False, True, False, False, False])
- >>>
Add Comment
Please, Sign In to add comment