-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
API DesignDuplicate ReportDuplicate issue or pull requestDuplicate issue or pull requestIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves
Description
Previously (version 0.11) it was possible to generate a boolean Series, and use that to index a numpy array. Version 0.13.0 breaks this behaviour and raises "IndexError: unsupported iterator index"
import numpy as np
import pandas as pd
rng = np.arange(5)
rng[rng > 2] # works as expected
>>> array([3, 4])
b = pd.Series(rng > 2)
rng[b] # doesn't work anymore
>>> IndexError: unsupported iterator index
Metadata
Metadata
Assignees
Labels
API DesignDuplicate ReportDuplicate issue or pull requestDuplicate issue or pull requestIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves