Skip to content

BUG: Regresssion in handling of empty Series as indexers to Series (GH5877) #5880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2014

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