Skip to content

BUG: conversion of uint64 to float when taking #15362

Closed
@jreback

Description

@jreback

62fe71e#r100575113

# master
In [1]: pandas.core.algorithms.take_nd(np.array([0, 1], dtype='uint64'), np.array([0, -1]))
Out[1]: array([  0.,  nan])

# with this change above
In [5]: pandas.core.algorithms.take_nd(np.array([0, 1], dtype='uint64'), np.array([0, -1]))
Out[5]: array([                   0, 18446744073709551615], dtype=uint64)

mainly need some more testing w.r.t. this (e.g. pandas.types.cast._maybe_promote).

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugClosing CandidateMay be closeable, needs more eyeballsDtype ConversionsUnexpected or buggy dtype conversions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions