I have an array in numpy: [0 1 2 3]
When I try to get the first element with a[0], it throws: IndexError: too many indices for array
If I use for x in a: print(x) Python throws TypeError: iteration over a 0-d array
Attempting to make a list with list(a) throws TypeError: 'numpy.uint8' object is not iterable
How do I convert this list of numbers into a standard list?
a?dtype. And just to be suretypeandshape. The errors are not consistent with the initial display. Also tryrepr(arr).