Assigning NaN to a variable saves the nan value in the variable.
Solution for How to assign NaN without Numpy in Python : You can use float() to assign NaN to a variable Call float(“nan”) to construct a nan value to hold in a variable.
Assigning NaN to a variable saves the nan value in the variable.
Solution for How to assign NaN without Numpy in Python : You can use float() to assign NaN to a variable Call float(“nan”) to construct a nan value to hold in a variable.