title: Excluding values in array - python
body: <p>Ok so I have an array in python. This array holds indices to another array. I removed the indices I wanted to keep from this array.</p>
  
  <p><code>stations = [1,2,3]</code></p>
  
  <p>Let's call <code>x</code> the main array. It has 5 columns and I removed the 1st and 5th and put the rest in the array called <code>stations</code>.</p>
  
  <p>I want to be able to create an if statement where the values from stations are excluded. So I'm just trying to find the number of instances (days) where the indices in the stations array are 0 and the other indices (0 and 4) are not 0.</p>
  
  <p>How do I go about doing that? I have this so far, but it doesn't seem to be correct.</p>
  
  <pre><code>for j in range(len(x)):
      if  x[j,0] != 0 and x[j,4] != 0 and numpy.where(x[j,stations[0]:stations[len(stations)-1]]) == 0:
          days += 1
  return days
  </code></pre>