Skip to content

Missingness dropped in float/?int division #563

@jcrist

Description

@jcrist
In [1]: import dynd

In [2]: dynd.__version__
Out[2]: "b'020cd10'"

In [3]: from dynd import nd

In [4]: a = nd.array([1, 2, None])

In [5]: 2/a
Out[5]:
nd.array([ 2,  1, NA],
         type="3 * ?int32")

In [6]: 2./a
Out[6]:
nd.array([           2,            1, 3.18299e-314],
         type="3 * ?float64")

In [7]: n = nd.array([2.])

In [8]: n/a
Out[8]:
nd.array([           2,            1, 3.18299e-314],
         type="3 * ?float64")

I'd expect an output of nd.array([2, 1, NA], type="3 * ?float64")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions