Skip to content

Buglets in MultiIndex, tuple indexing? #671

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

Closed
adamklein opened this issue Jan 24, 2012 · 2 comments
Closed

Buglets in MultiIndex, tuple indexing? #671

adamklein opened this issue Jan 24, 2012 · 2 comments
Labels
Milestone

Comments

@adamklein
Copy link
Contributor

bugs, or expected?

      Q          E           A        B        C        D       
F  G                                                            
0  0  x51CohYbqL aJBXfDaxvl -0.21474 -0.07802  0.37657  0.519663
1  2  Q07yrbfCLo RvNdHB9dl3 -0.16727 -1.26608  1.21477 -1.559552
2  4  uihKvB6NBA 5DjiMCJ8Sw -0.43737  0.10384  0.50846  1.413200
3  6  1qgFB8QlJS 2fUK7jD4Vb  1.06883  0.39375 -0.90719 -1.280366
4  8  9cmUdqYSor 93UZeCZOG8  0.28849  0.20656  0.14076 -1.350762
5  10 upb4NIS9Im V2v36EBTbW  1.42492 -0.81992 -0.58840  1.297900
6  12 EI1mcWNhQc lOi1LZoa9d -0.43579 -0.55900 -0.38126 -1.996946
7  14 P4svFjVstF KRdANeSKc1 -0.06271 -0.73894 -1.61319  0.015665
8  16 8TnT3assPy 8GMHH7cwIM -0.16219 -1.37595  0.26222  0.387206
9  18 ZpQAdGJGqn aOyyiwsKe5 -1.48009  0.20925  1.66069 -0.165002
10 20 GsgxBj1X6H IjKfhf7s0t -0.90167  0.42439  0.15507  1.423653
11 22 HvPp46Lsw7 6eRfG5cO5i  0.44674  0.35359 -1.03449 -1.224809
12 24 KZFZq4N2x6 WoZU0DDsZt -1.04287  0.50613 -0.37356  0.412353
13 26 BeXkOEK1vp KisdEjCbGD -0.68967  1.75701  0.83935  2.449815
14 28 xIaBEjA3KJ cYu48PoJcE  2.33759  0.80017 -0.49848  0.184022
15 30 SLC9Xq9WJr aAZeWu4Cuz -1.12675 -1.43130  0.67064 -0.004682
16 32 3L68qvWgWr JicCNHSE0W  1.39660  0.43552  0.42691 -0.576866
17 34 d5WumlvFj0 dvyPF9hbpr -1.44074  0.71225 -0.31398 -0.332095
18 36 s7JvczBxzY tdBT7QIsea -0.08437  0.37257 -0.96486  0.598225
19 38 G4vFpFXvRC NiOLw70EzR  1.53051  0.11435 -0.88396  0.765056
20 40 wW6VWMgyVo Yar4UkKxFU  0.16342 -0.22157 -0.28934 -0.563170
21 42 pGSClBDzVm mnfNHAv4rO  0.43092  1.20629 -0.43644  0.381052
22 44 I72WAD7jmE LLxBVrAYSJ -0.12854 -0.08114 -0.51555  0.030052
23 46 8CZLWGObmb EJwNMl0JGu -0.81029 -0.91152 -0.13883  0.195795
24 48 gMEDr2vJpl MEFjWFHtAA -1.10904  0.23615  0.15525 -0.187997
25 50 lzhkv8AZih kQYVmuHnBR  0.11009 -2.23447 -0.08848 -0.354509
26 52 YzPLrcENot XYpjlEAPaO -0.04009 -1.95039  0.45737 -2.303422
27 54 VltHl29NXr NpveZNu6dQ  0.77100  0.09994 -0.36891  0.643359
28 56 Xdt4lbmTDV YFPDKFbdrL  0.65604 -0.41013  2.08534  1.749054
29 58 J6SbXUfABj 0r1IxqyAZj -1.64618 -0.33196 -0.91242 -0.527971


In [68]: df.ix[(0,0), :]
ERROR: An unexpected error occurred while tokenizing input

In [69]: df.ix[[(0,0)], :]
Out[69]: 
    Q          E           A       B        C       D     
F G                                                       
0 0 x51CohYbqL aJBXfDaxvl -0.2147 -0.07802  0.3766  0.5197


In [71]: df.ix[[0,0], :]
    Q          E           A       B        C       D     
F G                                                       
0 0 x51CohYbqL aJBXfDaxvl -0.2147 -0.07802  0.3766  0.5197
  0 x51CohYbqL aJBXfDaxvl -0.2147 -0.07802  0.3766  0.5197
@wesm
Copy link
Member

wesm commented Jan 24, 2012

That should work

@wesm
Copy link
Member

wesm commented Jan 24, 2012

the indexing code is in desperate need of refactoring but got this to work

@wesm wesm closed this as completed Jan 24, 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

2 participants