Skip to content

API: inference of uint64s are wrong #16109

@jreback

Description

@jreback
In [1]: pd.api.types.infer_dtype([2*63, -1])
Out[1]: 'integer'

In [3]: pd.api.types.infer_dtype([2*63])
Out[3]: 'integer'

[1] should be 'mixed' (inference which means object)
[2] should be 'uinteger'

note this will probably break some things in other parts of the suite as we sometimes infer to figure out the dtype and act on it, so 'uinteger' would then be unhandled.

e.g. in Index creation and https://github.com/pandas-dev/pandas/pull/16108/files
xref https://github.com/pandas-dev/pandas/pull/16295/files

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions