Skip to content

RangeIndex not generated with pd.concat with ignore_index as True #12695

Closed
@AnkurDedania

Description

@AnkurDedania

With version 0.18.0 introducing RangeIndex, should RangeIndex be applied for concat when ignore_index is set to True?

df = pd.concat([df_a, df_b], ignore_index=True)

df.index is an instance of Int64Index, not RangeIndex currently in 0.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIndexingRelated 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