When I'm using 2d array maps, everything works fine. When I start using 1d arrray's this error occurs; IndexError: unsupported iterator index. This is the error I'm talking about:
In [426]: y = Series( [0,1,0,1] )
In [427]: arr1 = np.array( [10,20] )
In [428]: arr2 = np.array( [[10,20],[30,40]] )
In [429]: arr2[ y, y ]
Out[429]: array([10, 40, 10, 40])
In [430]: arr1[ y ]
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-430-25b98edce1f3> in <module>()
----> 1 arr1[ y ]
IndexError: unsupported iterator index
I'm using the latest Anaconda distribution with NumPy 1.8.1. Maybe this is related to a NumPy bug discussed here? Could anybody tell me what is causing this error?