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 with MultiIndex indexing buglet #1678

Closed
wesm opened this issue Jul 25, 2012 · 0 comments
Closed

.ix with MultiIndex indexing buglet #1678

wesm opened this issue Jul 25, 2012 · 0 comments
Labels
Milestone

Comments

@wesm
Copy link
Member

wesm commented Jul 25, 2012

from mailing list:

In [42]: frame
Out[42]: 
      Ohio       Colorado
     Green  Red     Green
a 1      0    1         2
  2      3    4         5
b 1      6    7         8
  2      9   10        11

In [43]: frame.ix[:,0]
Out[43]: 
a  1    0
   2    3
b  1    6
   2    9
Name: ('Ohio', 'Green')

In [44]: frame.icol(0)
Out[44]: 
a  1    0
   2    3
b  1    6
   2    9
Name: ('Ohio', 'Green')

In [45]: frame.ix[:,1]
Out[45]: 
    Ohio       Colorado
   Green  Red     Green
a      0    1         2
b      6    7         8

In [46]: frame.icol(1)
Out[46]: 
a  1     1
   2     4
b  1     7
   2    10
Name: ('Ohio', 'Red')
@wesm wesm closed this as completed in e47bf26 Aug 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant