How can you detect null columns in an array?

I had a query. I want to write a code snippet where it detects whether or not there are any null columns present in my dataset. showing below the desired output I want:

image
Can anyone help me with this?