Skip to content

API: implement non-unique indexing in series (GH4246) #4247

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
Jul 15, 2013

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Jul 15, 2013

closes #4246

In [3]: s = Series([1,2,3,4],['foo','bar','foo','bah'])

In [4]: s.ix[['foo','bar','bah','bam']]
Out[4]: 
foo     1
foo     3
bar     2
bah     4
bam   NaN
dtype: float64

In [5]: s[['foo','bar','bah','bam']]
Out[5]: 
foo     1
foo     3
bar     2
bah     4
bam   NaN
dtype: float64

jreback added a commit that referenced this pull request Jul 15, 2013
API: implement non-unique indexing in series (GH4246)
@jreback jreback merged commit 53b7a74 into pandas-dev:master Jul 15, 2013
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.

API: non-unique indexing on Series
1 participant