0

I am stuck at a point in python where dataset has None values and It was working fine when there was nan in the dataset, Now it's saying argument 1 has unexpected type 'float'.

   a = NaN
    if (a is None):
        print('a is None')
    elif(a is NaN):
        print('a is NaN')
    elif(a is None):
        print('a is Null')
Jayvee
  • 10,670
  • 3
  • 29
  • 40
graj499
  • 87
  • 2
  • 12
  • https://stackoverflow.com/questions/17534106/what-is-the-difference-between-nan-and-none – Eitan Rosati May 23 '21 at 12:24
  • 3
    Does this answer your question? [What is the difference between NaN and None?](https://stackoverflow.com/questions/17534106/what-is-the-difference-between-nan-and-none) – Eitan Rosati May 23 '21 at 12:25

0 Answers0