title: Type Error: a float is required | When using math.isnan in an if satatement
body: <pre><code>for i in range(len(df)):
      for j in range(8):
          if math.isnan(df1.iloc[i,j]) == FALSE:
              b=b+1
              print(b ," correct out of", b+c)
          else:
              print("Error")
  </code></pre>
  
  <p>Error at line 36 (which is the if statement)</p>
  
  <pre><code>TypeError: a float is required
  </code></pre>