IntegerArray divide by zero returns NaN instead of inf · Issue #27398 · pandas-dev/pandas (original) (raw)

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])