Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missingness dropped in float/?int division #563

Open
jcrist opened this issue Jan 29, 2016 · 0 comments
Open

Missingness dropped in float/?int division #563

jcrist opened this issue Jan 29, 2016 · 0 comments

Comments

@jcrist
Copy link

jcrist commented Jan 29, 2016

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant