BUG: Wrong expression np.multiply
to validate overflow exception in pandas.core.reshape.reshape.py#L118
#33694
Closed
3 tasks done
Labels
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
np.multiply
result cannot validate overflow exceptions. If overflow,x
will bex % 2**32
, which can be negative, positive, zero, depending on its first bit.See above example codes, where
66000*66000
is overflow fornp.int32
but itsmultiply
res is positive.[this should explain why the current behaviour is a problem and why the expected output is a better solution]
Expected Output
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here leaving a blank line after the details tag]The text was updated successfully, but these errors were encountered: