Documentation
Convert inf and -inf’s to large numbers.
x (array-like or number) – The input array or number.
x – Input without with +/- inf replaced by large numbers.
Number of array_like