-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Failing test on win/py2.6/64, TestResample:test_how_lambda_functions #6136
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
Comments
I'll have. look tomorrow |
@jreback , I've been chasing this down, I think it's an actual bug. I can't inline the float64 data because the repr roundtrip changes the data, Reproduce: import pandas as pd
from pandas import *
ts = pd.read_pickle('GH6136.pickle')
# on win/py2.6.6 np1.8.0 vs linux/py2.7.5 np1.8.0
print ts.resample('M', how={'bar': lambda x: x.std(ddof=1)})
# similarly, on linux above and below produce the same result
# on window/... they are different see below. That's the cause
# of the failing test
ts.resample('M', how='std')
gives In [71]: ts.resample('M', how={'bar': lambda x: x.std(ddof=1)})
Out[71]:
bar
2000-01-31 0.896238
2000-02-29 0.944715
2000-03-31 1.149277
2000-04-30 1.#INF
[4 rows x 1 columns]
In [72]: ts.resample('M', how='std')
Out[72]:
2000-01-31 0.896238
2000-02-29 0.944715
2000-03-31 1.149277
2000-04-30 NaN
Freq: M, dtype: float64
In [73]: np.version.git_revision
Out[73]: 'a60b3901cd635d28bef8328e83bafd35ce631e08' while
gives In [24]: ts.resample('M', how={'bar': lambda x: x.std(ddof=1)})
Out[24]:
bar
2000-01-31 0.896238
2000-02-29 0.944715
2000-03-31 1.149277
2000-04-30 NaN
[4 rows x 1 columns]
In [25]:
In [
In [25]: ts.resample('M', how='std')
Out[25]:
2000-01-31 0.896238
2000-02-29 0.944715
2000-03-31 1.149277
2000-04-30 NaN
Freq: M, dtype: float64
>>> np.version.git_revision
'a60b3901cd635d28bef8328e83bafd35ce631e08' |
moved to 0.13.1, push to 0.14 if we must. |
Damn, we're doing that mindread thing again. |
detailed! I have. py2.6 64 windows so I can try to reproduce |
This has failed intermittently a couple of times in the last week or two.
The text was updated successfully, but these errors were encountered: