-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
difference in overflows handling while doing pow on large integers #15046
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
Labels
Compat
pandas objects compatability with Numpy or Python functions
Numeric Operations
Arithmetic, Comparison, and Logical operations
Testing
pandas testing functions or related to the test suite
Comments
#14498 you look like you have an older version here. |
if you are referring to the version of pandas -- then nope -- all as fresh as it gets. $> nosetests -s -v --pdb pandas/tests/test_expressions.py
test_binary_ops (pandas.tests.test_expressions.TestExpressions) ... > /home/yoh/deb/gits/pkg-exppsy/pandas/pandas/computation/expressions.py(63)_evaluate_standard()
-> return op(a, b)
(Pdb) c
ERROR
test_bool_ops_raise_on_arithmetic (pandas.tests.test_expressions.TestExpressions) ... ok
test_bool_ops_warn_on_arithmetic (pandas.tests.test_expressions.TestExpressions) ... ok
test_boolean_ops (pandas.tests.test_expressions.TestExpressions) ... ok
test_float_arithemtic (pandas.tests.test_expressions.TestExpressions) ... ok
test_float_arithemtic_frame (pandas.tests.test_expressions.TestExpressions) ... ok
test_float_arithmetic_series (pandas.tests.test_expressions.TestExpressions) ... ok
test_float_panel (pandas.tests.test_expressions.TestExpressions) ... ok
test_integer_arithmetic (pandas.tests.test_expressions.TestExpressions) ... > /home/yoh/deb/gits/pkg-exppsy/pandas/pandas/util/testing.py(1018)raise_assert_detail()
-> raise AssertionError(msg)
(Pdb) import pandas
(Pdb) print pandas.__version__
0.19.0+303.gad13f08 just that nosetests adjusts PYTHONPATH while I ran |
might be numpy beta. we test with numpy master on travis, but not windows. |
raspbian-autopush
pushed a commit
to raspbian-packages/pandas
that referenced
this issue
Mar 7, 2017
…r) 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: pandas-dev/pandas#15046 Last-Update: 2017-01-04 Gbp-Pq: Name up_buggy_overflows
raspbian-autopush
pushed a commit
to raspbian-packages/pandas
that referenced
this issue
Apr 6, 2017
…r) 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: pandas-dev/pandas#15046 Last-Update: 2017-01-04 Gbp-Pq: Name up_buggy_overflows
This is working on master locally. Closing |
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
Numeric Operations
Arithmetic, Comparison, and Logical operations
Testing
pandas testing functions or related to the test suite
Output from running tests and troubleshooting
probably related to having numpy beta release or freshish numexpr...
Problem description
Not sure what to blame here -- numexpr or numpy or ... What would you expect while trying to get e.g.
30**30
? max for int of original pow base type?Output of
pd.show_versions()
INSTALLED VERSIONS
commit: ad13f08
python: 2.7.13.candidate.1
python-bits: 64
OS: Linux
OS-release: 4.8.0-1-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0+git14-ga40e185
nose: 1.3.7
pip: 8.1.2
setuptools: 28.7.1
Cython: 0.25.2b0
numpy: 1.12.0b1
scipy: 0.18.1
statsmodels: 0.8.0rc1
xarray: None
IPython: 5.1.0
sphinx: 1.4.8
patsy: 0.4.1+dev
dateutil: 2.5.3
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
feather: None
matplotlib: 1.5.3
openpyxl: 2.3.0
xlrd: 1.0.0
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.6.4
bs4: 4.5.1
html5lib: 0.999
httplib2: 0.9.2
apiclient: 1.5.2
sqlalchemy: 1.0.15
pymysql: None
psycopg2: 2.6.2 (dt dec mx pq3 ext lo64)
jinja2: 2.8
s3fs: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: