From: Yaroslav Halchenko Date: Sun, 2 Apr 2017 05:06:36 +0000 (+0000) Subject: avoid overflows for now Due to a bug in current numpy beta (or numexpr) tests would... X-Git-Tag: archive/raspbian/0.19.2-5.1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cca023d0047e5aa96de8c31ed72714ad625c3b74;p=pandas.git avoid overflows for now Due to a bug in current numpy beta (or numexpr) tests would fail if operation on int leads to overflows (e.g. of pow operation). as a workaround for now -- avoid big ints Origin: Debian Bug: https://github.com/pandas-dev/pandas/issues/15046 Last-Update: 2017-01-04 Gbp-Pq: Name up_buggy_overflows --- diff --git a/pandas/tests/test_expressions.py b/pandas/tests/test_expressions.py index c037f02f..754159aa 100644 --- a/pandas/tests/test_expressions.py +++ b/pandas/tests/test_expressions.py @@ -40,7 +40,7 @@ _mixed2 = DataFrame({'A': _frame2['A'].copy(), 'C': _frame2['C'].astype('int64'), 'D': _frame2['D'].astype('int32')}) _integer = DataFrame( - np.random.randint(1, 100, + np.random.randint(1, 10, size=(10001, 4)), columns=list('ABCD'), dtype='int64') _integer2 = DataFrame(np.random.randint(1, 100, size=(101, 4)), columns=list('ABCD'), dtype='int64')