Skip to content

Commit

Permalink
subdtype
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Aug 29, 2024
1 parent bc66a5e commit 0540dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pint_pandas/pint_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,8 @@ def convert_values(param):
# a TypeError should be raised
res = op(lvalues, rvalues)

subdtype = self.dtype.subdtype
if "truediv" in op.__name__ and subdtype.kind == "i":
subdtype = self.data.dtype
if "truediv" in op.__name__ and pd.api.types.is_integer_dtype(subdtype):
if isinstance(subdtype, _NumpyEADtype):
subdtype = "float64"
else:
Expand Down

0 comments on commit 0540dbe

Please sign in to comment.