Skip to content

Performance of iloc can be 200x slower than __getitem__ #1752

@devin-petersohn

Description

@devin-petersohn

iloc and __getitem__ have dramatically different performance:

df.iloc[:, 0]
df[df.columns[0]]

The first can be as much as 200x slower. We must handle slices better internally for performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Performance 🚀Performance related issues and pull requests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions