pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
42.57k stars 17.56k forks source link

remove ops div class to solve #21374 #59144

Open mutricyl opened 2 days ago

mutricyl commented 2 days ago

core.computation.div.ops.Div class that was introduced to manage unexpected upcast from float32 to float64 looks to be responsible of the imaginary part of complexes being dropped. It seams that numpy and numexpr have evolved since #12388 and this fix is no more needed. This PR removes core.computation.div.ops.Div class and extends tests to cover for both floats and complex.