Guest User

Untitled

a guest
Nov 21st, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. | a01 | a02 |
  2. -----------------
  3. a12 | 1. | 3. |
  4. a11 | 2. | 4. |
  5.  
  6. >>> a = np.array([1., 2.])
  7. >>> b = np.array([3., 4.])
  8. >>> c = np.array([])
  9. >>> c[a][b] = 1.
  10. Traceback (most recent call last):
  11. File "<stdin>", line 1, in <module>
  12. IndexError: arrays used as indices must be of integer (or boolean) type
Add Comment
Please, Sign In to add comment