Why there is an error with list broadcasting
Why there is an error about broadcasting? The subject ‘idx’ is surely a Python list ValueError Traceback (most recent call last) Cell In[7], line 3 1 import numpy as np 2 idx = [] ----> 3 idx += np.array([1, 2]) ValueError: operands could not be broadcast together with shapes (0,) (2,)
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.