Skip to content

API should empty ._get_bool_data have RangeIndex? #50862

Closed
@MarcoGorelli

Description

@MarcoGorelli

This came up in #50636

In [9]: Series([], dtype='bool').index
Out[9]: RangeIndex(start=0, stop=0, step=1)

In [10]: Series([], dtype='bool')._get_bool_data().index
Out[10]: NumericIndex([], dtype='int64')

cc @topper-123

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignIndexRelated to the Index class or subclasses

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions