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

DataFrame.corr() throws error on simple data #1761

Closed
jankatins opened this issue Aug 13, 2012 · 0 comments
Closed

DataFrame.corr() throws error on simple data #1761

jankatins opened this issue Aug 13, 2012 · 0 comments
Labels
Milestone

Comments

@jankatins
Copy link
Contributor

df3 = DataFrame({"a":[1,2,3,4], "b":[1,2,3,4]})
df3
   a  b
0  1  1
1  2  2
2  3  3
3  4  4
df3.corr()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\portabel\Python27\lib\site-packages\pandas\core\frame.py", line 3867, in corr
    correl = lib.nancorr(mat)
  File "moments.pyx", line 284, in pandas.lib.nancorr (pandas\src\tseries.c:67792)
ValueError: Buffer dtype mismatch, expected 'float64_t' but got 'long long'
@wesm wesm closed this as completed in 4083689 Aug 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants