Skip to content

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

Closed
@jankatins

Description

@jankatins
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 :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignBugIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions