NumPy: Test element-wise for positive or negative infinity - w3resource

NumPy: Test element-wise for positive or negative infinity - w3resource

More to explore