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

Advanced indexing .ix does not handle step with integer labels #185

Closed
wesm opened this issue Sep 29, 2011 · 0 comments
Closed

Advanced indexing .ix does not handle step with integer labels #185

wesm opened this issue Sep 29, 2011 · 0 comments
Labels
Milestone

Comments

@wesm
Copy link
Member

wesm commented Sep 29, 2011

Should raise exception:

In [14]: import pandas.util.testing as tm

In [15]: df = tm.makeTimeDataFrame()

In [16]: df.index = np.arange(len(df))

In [17]: df.ix[:20:2, :]
Out[17]: 
    A       B        C         D     
0   0.7272  2.299    0.6004   -1.295 
1   0.1992 -0.6554  -0.6646    2.679 
2  -2.888  -0.8418   0.9162   -0.423 
3   0.1537  2.135    0.2564    0.7554
4   2.036   1.728   -1.055     0.59  
5  -0.1152 -1.131    0.1782    0.89  
6  -0.1432 -0.5045  -1.04     -1.235 
7   0.4615  0.6217   0.652     0.7405
8   0.9663 -0.8796   1.295    -1.333 
9  -0.2225 -0.6098  -0.1984   -0.534 
10  0.3549  2.245    1.554     1.43  
11 -1.241  -1.069   -1.85     -1.263 
12 -1.484  -0.01338  0.4773   -1.221 
13  0.8658  1.43    -0.005297  0.5183
14 -0.4009 -0.5202  -0.6209   -1.438 
15  0.756   0.2559   0.4617    0.3081
16  0.7314  1.809    1.922    -0.1331
17 -1.633  -1.026   -1.327    -0.3797
18  0.731  -0.1977   1.26      0.9189
19  0.1858 -0.9953   0.8936    1.237 
20 -1.195  -0.7265  -0.7423   -0.8248
@wesm wesm closed this as completed Sep 30, 2011
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
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