NumPy arrays can sometimes contain special values
NaN → Not a Number
inf → Infinity
-inf → Negative Infinity
Step 1:
Output:
Replace Values
Step 1:
Output:
- Nan -> 0 and inf -> 1
Output:
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)