Created
June 9, 2018 03:14
-
-
Save hiramekun/2ff0373eb7f9f9e6e626e32aa1841e0e to your computer and use it in GitHub Desktop.
特定のindexを除いた配列
This file contains 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
array = np.array([1, 2, 3, 4, 5]) | |
index = np.ones(5, dtype=bool) | |
index[3, 4] = False | |
array[index] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment