numpy.nan_to_num()
numpy.nan_to_num
-
numpy.nan_to_num(x)
[source] -
Replace nan with zero and inf with finite numbers.
Returns an array or scalar replacing Not a Number (NaN) with zero, (positive) infinity with a very large number and negative infinity with a very small (or negative) number.
Parameters: x : array_like
Input data.
Returns: out登录查看完整内容