Skip to content

BUG: np.sctypeNA['i8'] and np.sctypeNA['f8'] have different semantics #11341

@eric-wieser

Description

@eric-wieser

Part of cleaning up numerictypes.py. The following looks wrong to me:

>>> np.sctypeNA['i8']  # any integer type
<type 'numpy.int64'>
>>> np.sctypeNA['f8']  # any non-integer type
'Float64'

Surely these should both return type objects, rather than sometimes returning strings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions