-
-
Save kuredev/8f8f605495d5ef794de3f78846556896 to your computer and use it in GitHub Desktop.
Numpyの小さなメモ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| x = np.array([-1.0, 1.0, 2.0]) | |
| print(type(x)) | |
| print(x) | |
| y = x > 0 | |
| print(type(y)) | |
| print(y) | |
| z = y.astype(np.int) | |
| print(type(z)) | |
| print(z) |
kuredev
commented
Nov 17, 2017
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment