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

.ix does not warn when selecting a none-existing column #2033

Closed
jankatins opened this issue Oct 7, 2012 · 5 comments
Closed

.ix does not warn when selecting a none-existing column #2033

jankatins opened this issue Oct 7, 2012 · 5 comments
Labels
API Design Bug Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@jankatins
Copy link
Contributor

df3 = DataFrame({"a":[1,2,3,4], "b":[1,2,3,4]})
df3.ix[:,["b","c"]]
Out[1]: 
   b   c
0  1 NaN
1  2 NaN
2  3 NaN
3  4 NaN

I would have (had...) expected that the df3.ix[:,["b","c"]] will throw an error :-(

@ghost ghost assigned changhiskhan Oct 8, 2012
@changhiskhan
Copy link
Contributor

@wesm was the original idea for ix to have it work like reindex or getitem? Feels more natural as getitem to me but just double checking

@lodagro
Copy link
Contributor

lodagro commented Oct 8, 2012

See also my comment on #1799, which has similar scenario`s.

@wesm
Copy link
Member

wesm commented Nov 3, 2012

0.10

@jreback
Copy link
Contributor

jreback commented Sep 20, 2013

@JanSchulz

old issue, but this is expected behavior when selecting via a slice/list

@jreback
Copy link
Contributor

jreback commented Dec 18, 2013

closing as not a bug, expected behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

5 participants