Skip to content

Conversation

@jreback
Copy link
Contributor

@jreback jreback commented Jan 8, 2014

closes #5877

In [1]: s = Series(['A', 'B'])

In [2]: s[Series(['C'], dtype=object)]
Out[2]: 
C    NaN
dtype: object

In [3]: s[Series([], dtype=object)]
Out[3]: Series([], dtype: object)

This didn't work in 0.12

In [4]: s[Series([], dtype=bool)]
Out[4]: Series([], dtype: object)

This raises though (in both 0.12 and 0.13)

In [5]: s[Series([True], dtype=bool)]
IndexingError: Unalignable boolean Series key provided
``

jreback added a commit that referenced this pull request Jan 8, 2014
BUG: Regresssion in handling of empty Series as indexers to Series  (GH5877)
@jreback jreback merged commit 9747029 into pandas-dev:master Jan 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"IndexingError: Unalignable boolean Series key provided" when passing an empty object Series

1 participant