Skip to content

PERF: reset_index shouldn't trigger index materialization in case when drop==True and level==None #5017

@anmyachev

Description

@anmyachev

RangeIndex can be built on the basis of _row_lengths. Materializing lengths is much cheaper than materializing indices.

Metadata

Metadata

Assignees

Labels

P2Minor bugs or low-priority feature requestsPerformance 🚀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