Skip to content

iloc errors when end is greater than length #6296

Closed
@jseabold

Description

@jseabold

IMO this should work

x = pd.DataFrame(np.random.rand(5,3))
x.iloc[:6]

Consider

np.arange(5)[:7]

And

range(5)[:7]

I'm on

[~/]
[14]: pd.version.version
[14]: '0.13.1-63-gcc6ee40'

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions