@@ -1622,7 +1622,7 @@ def floor_divide(
1622
1622
# the output.
1623
1623
result = (
1624
1624
result .replace (numpy .inf , 0 )
1625
- .replace (numpy .NINF , 0 )
1625
+ .replace (- numpy .inf , 0 )
1626
1626
.where (self ._query_compiler .ne (0 ), 0 )
1627
1627
)
1628
1628
return fix_dtypes_and_determine_return (
@@ -1644,7 +1644,7 @@ def floor_divide(
1644
1644
# the output.
1645
1645
result = (
1646
1646
result .replace (numpy .inf , 0 )
1647
- .replace (numpy .NINF , 0 )
1647
+ .replace (- numpy .inf , 0 )
1648
1648
.where (callee .ne (0 ), 0 )
1649
1649
)
1650
1650
return fix_dtypes_and_determine_return (result , new_ndim , dtype , out , where )
@@ -1902,7 +1902,7 @@ def remainder(
1902
1902
if x2 == 0 and numpy .issubdtype (out_dtype , numpy .integer ):
1903
1903
# NumPy's remainder by 0 works differently from pandas', so we need to fix
1904
1904
# the output.
1905
- result = result .replace (numpy .NaN , 0 )
1905
+ result = result .replace (numpy .nan , 0 )
1906
1906
return fix_dtypes_and_determine_return (
1907
1907
result , self ._ndim , dtype , out , where
1908
1908
)
@@ -1920,7 +1920,7 @@ def remainder(
1920
1920
if callee .eq (0 ).any () and numpy .issubdtype (out_dtype , numpy .integer ):
1921
1921
# NumPy's floor_divide by 0 works differently from pandas', so we need to fix
1922
1922
# the output.
1923
- result = result .replace (numpy .NaN , 0 )
1923
+ result = result .replace (numpy .nan , 0 )
1924
1924
return fix_dtypes_and_determine_return (result , new_ndim , dtype , out , where )
1925
1925
1926
1926
__mod__ = remainder
0 commit comments