title: Check if value greater than zero exists in all columns of dataframe using pyspark
body: <pre><code>   data.select([count(when(isnan(c), c)).alias(c) for c in data.columns]).show()
  </code></pre>
  
  <p>This is the code I was trying to get the count of the nan values. I want to write an if-else condition where if a specific column contains nan values, I want to print the name of the column and count of nan values.</p>