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

Series test_sum fails due to different NaN behavior #9957

Closed
drudd opened this issue Apr 20, 2015 · 2 comments
Closed

Series test_sum fails due to different NaN behavior #9957

drudd opened this issue Apr 20, 2015 · 2 comments
Labels
Compat pandas objects compatability with Numpy or Python functions Duplicate Report Duplicate issue or pull request Numeric Operations Arithmetic, Comparison, and Logical operations

Comments

@drudd
Copy link
Contributor

drudd commented Apr 20, 2015

I have an installation of Pandas of 0.16.0 that fails TestSeries.test_sum when using Numpy 1.9.2 compiled against MKL 11.2. Here is a minimal test:

import numpy as np
import pandas as pd

s = np.nan*pd.util.testing.makeStringSeries()
print s.sum()

For Pandas 0.15.2, Numpy 1.9.1 compiled against MKL 10.3, this prints nan, but for Numpy 1.9.2 against 11.2 it prints 0.0.

I don't know whether to blame Pandas version, blas or Numpy version, and will run additional tests to distinguish which is at fault. I have stepped through execution for both cases and they are identical up to the call to at pandas/core/nanops.py:89

@jreback
Copy link
Contributor

jreback commented Apr 20, 2015

xref to #9422 and #8383

@jreback
Copy link
Contributor

jreback commented Apr 20, 2015

this is a dupe of #9422 actually

feel free to comment / propose fix etc there

thanks for the report

@jreback jreback closed this as completed Apr 20, 2015
@jreback jreback added Duplicate Report Duplicate issue or pull request Numeric Operations Arithmetic, Comparison, and Logical operations Compat pandas objects compatability with Numpy or Python functions labels Apr 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Duplicate Report Duplicate issue or pull request Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

No branches or pull requests

2 participants