title: Numpy row wise masking
body: <p>I have a numpy array which has NaN values in some locations.</p>
  
  <pre><code>&gt;&gt;&gt; d1
  array([[  0.,   1.,   2.,  nan,   4.,   5.,  nan,   7.],
         [  8.,   9.,  10.,  nan,  12.,  13.,  nan,  15.],
         [ 16.,  17.,  18.,  nan,  20.,  21.,  nan,  23.],
         [ 24.,  25.,  26.,  nan,  28.,  29.,  30.,  31.],
         [ 32.,  33.,  34.,  35.,  36.,  37.,  38.,  39.],
         [ 40.,  41.,  42.,  43.,  44.,  45.,  46.,  47.],
         [ 48.,  49.,  50.,  51.,  52.,  53.,  54.,  55.],
         [ 56.,  57.,  58.,  59.,  60.,  61.,  62.,  63.]])
  </code></pre>
  
  <p>I want to make <strong>a mask</strong> which will make entire row as <code>False</code> value if NaN value present in that row. Like below.</p>
  
  <pre><code>&gt;&gt;&gt; mask
  array([[False, False, False, False, False, False, False, False],
         [False, False, False, False, False, False, False, False],
         [False, False, False, False, False, False, False, False],
         [False, False, False, False, False, False, False, False],
         [ True,  True,  True,  True,  True,  True,  True,  True],
         [ True,  True,  True,  True,  True,  True,  True,  True],
         [ True,  True,  True,  True,  True,  True,  True,  True],
         [ True,  True,  True,  True,  True,  True,  True,  True]], dtype=bool)
  </code></pre>
  
  <p>I tried to apply mask like below But It didnt work.</p>
  
  <pre><code>mask = NaN not in d1[,:]
  </code></pre>
  
  <p>Any one can help me to figure this out ?</p>