Skip to content

IntegerArray divide by zero returns NaN instead of inf #27398

Closed
@TomAugspurger

Description

@TomAugspurger
In [4]: np.array([1]) / np.array([0])
/Users/taugspurger/.virtualenvs/pandas-dev/bin/ipython:1: RuntimeWarning: divide by zero encountered in true_divide
  #!/Users/taugspurger/Envs/pandas-dev/bin/python
Out[4]: array([inf])

In [7]: pd.array([1], dtype='Int64') / 0
Out[7]: array([nan])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Numeric OperationsArithmetic, Comparison, and Logical operations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions