@@ -124,9 +124,9 @@ def nan_to_num(
124
124
Replace NaN with zero and infinity with large finite numbers (default behaviour).
125
125
126
126
If `x` is inexact, NaN is replaced by zero or by the user defined value in
127
- `nan ` keyword, infinity is replaced by the largest finite floating point
128
- values representable by ``x.dtype`` and -infinity is replaced by the most
129
- negative finite floating point values representable by ``x.dtype``.
127
+ `fill_value ` keyword, infinity is replaced by the largest finite floating
128
+ point values representable by ``x.dtype`` and -infinity is replaced by the
129
+ most negative finite floating point values representable by ``x.dtype``.
130
130
131
131
For complex dtypes, the above is applied to each of the real and
132
132
imaginary components of `x` separately.
@@ -135,9 +135,9 @@ def nan_to_num(
135
135
136
136
Parameters
137
137
----------
138
- x : array, float, complex
138
+ x : array | float | complex
139
139
Input data.
140
- fill_value : int, float, complex, optional
140
+ fill_value : int | float | complex, optional
141
141
Value to be used to fill NaN values. If no value is passed
142
142
then NaN values will be replaced with 0.0.
143
143
xp : array_namespace, optional
0 commit comments