Skip to content
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

BUG: Index string ops ignores the order #10083

Closed
sinhrks opened this issue May 8, 2015 · 3 comments
Closed

BUG: Index string ops ignores the order #10083

sinhrks opened this issue May 8, 2015 · 3 comments
Labels
Strings String extension data type and string data
Milestone

Comments

@sinhrks
Copy link
Member

sinhrks commented May 8, 2015

Series (OK)

s = pd.Series(['A', 'B'])
'x' + s
#0    xA
#1    xB
# dtype: object

s + 'y'
#0    Ay
#1    By
# dtype: object

Index (NG)

idx = pd.Index(['A', 'B'])

# NG
'x' + idx
# Index([u'Ax', u'Bx'], dtype='object')

# OK
idx + 'y'
# Index([u'Ay', u'By'], dtype='object')
@sinhrks sinhrks added the Strings String extension data type and string data label May 8, 2015
@shoyer
Copy link
Member

shoyer commented May 8, 2015

@mortada has a fix for this here: #10021

@jreback
Copy link
Contributor

jreback commented May 8, 2015

closed by #10021

@jreback jreback closed this as completed May 8, 2015
@sinhrks
Copy link
Member Author

sinhrks commented May 8, 2015

Great! I've missed the PR...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Strings String extension data type and string data
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants