Skip to content

BUG/ENH: Passing explicit dtype should delegate to appropriate Index subclass (if available) #5196

Closed
@jtratner

Description

@jtratner

e.g. here's wrong behavior on current master

In [1]: import pandas as pd
In [2]: ind = pd.Index([1, 2, 3], dtype='int64')
In [3]: ind
Out[3]: Index([1, 2, 3], dtype='object')

Problem is ordering of how passed dtypes work in Index constructor. Make sure this gets fixed in 0.14.

Metadata

Metadata

Assignees

Labels

BugIndexingRelated 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