-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Certain DataFrame cannot be pickled to string #511
Comments
This is likely fixed by the float -> float64 fix (#510). I'll verify. |
Confirmed. |
Chris is getting this error elsewhere. Do you think there's anything we can do? This repros in Pandas 0.4.0 as well. |
Please let me know when you verify the fix-- should be taken care of by the float/float64 fix perhaps? |
I thought it might be fixed by that float fix, but no luck. I still get this error on a build from 2012-01-05. |
Any chance of reproducing? And this is on win32? Or rather the above code snippet fails on windows? |
I can repro this with the original code in the issue. This is on EPD 6.3-2 + Windows 64. |
OK, I am able to reproduce on win64 + epd 6.3-2 |
This is caused by a bug in NumPy 1.4.0. I verified that it's fixed in NumPy 1.6.1:
However! Pickling with protocol 1 or 2 (or
You should be doing that anyway-- performance is a lot better. Make sure any file handles are open in binary mode. |
import cPickle
import numpy as np
from pandas import Series
s = Series({'a' : None})
s['a'] = np.inf
cPickle.loads(cPickle.dumps(s))
ValueError: could not convert string to float
The text was updated successfully, but these errors were encountered: