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

BUG: float64index slicing with getitem bug #7504

Closed
wants to merge 2 commits into from
Closed

BUG: float64index slicing with getitem bug #7504

wants to merge 2 commits into from

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Jun 18, 2014

closes #7501

attrs))


is_int_slice = is_slice_of(is_integer)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this routine exists already in core/indexing.py

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Pardon my wheel reinvention

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I think I had taken that out a while back. You can put it in core/indexing.py if you think its more generally useful. Though maybe better simply to handle this in convert_slice_indexer (in the Index one (e.g. the super)),

@jorisvandenbossche
Copy link
Member

Am I right this changes the behaviour of [], but not of ix[]? Because in that case, now also those two are different ...

@cpcloud
Copy link
Member Author

cpcloud commented Jun 19, 2014

@jreback @jorisvandenbossche i'm going to close this PR, because I don't think this is a bug.

@jreback
Copy link
Contributor

jreback commented Jun 19, 2014

ok!

@cpcloud cpcloud closed this Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't slice float indices, but can slice integer indices?
3 participants