You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bjonen opened this issue
May 20, 2014
· 5 comments
Labels
Compatpandas objects compatability with Numpy or Python functionsDeprecateFunctionality to remove in pandasIndexingRelated to indexing on series/frames, not to indexes themselves
nope....that is the defined behavior of .ix it assumes you mean the 0th index (as prior to loc/iloc no way to say get me the 0th column). That is why you are encouraged to use loc/iloc and not ix (however it was kept for back-compat reasons).
I agree its not intuitive and should not guess, but noone put in effort to put up the warning.
ok...so will mark this as a issue for 0.15.0 then (to put up a warning in a case like this)
Compatpandas objects compatability with Numpy or Python functionsDeprecateFunctionality to remove in pandasIndexingRelated to indexing on series/frames, not to indexes themselves
I know in this case one should use iloc, It's not clear what ix should do in this case, but the df.ix[:,[0]] case is certainly not what is expected.
How about either
when asked to ix an index like this.
The text was updated successfully, but these errors were encountered: