title: TypeError: 'in <string>' requires string as left operand, not tuple
body: <p>I'm trying to find out if a geo point is in polygon. I found <a href="http://geospatialpython.googlecode.com/svn/trunk/PiP_Edge.py" rel="nofollow">this function</a> online. And I'm trying to pass a list of lat and lon from csv file. </p>
  
  <p>It works when I tried passing variables individually, but run into an error when I put it in the loop. </p>
  
  <p>I'm a newbie in python and have no idea what went wrong. Any help is appreciated. </p>
  
  <pre><code>data = pd.read_csv('opp.csv')
  
  lat = data['lat'][1]
  lon = data['lon'][1]
  print lat, lon, type(lat), type(lon)
  zone1 = point_in_poly(lat, lon, zone1)
  print zone1
  
  #This works and return the following
  #41.87639 -87.65328 &lt;type 'numpy.float64'&gt; &lt;type 'numpy.float64'&gt;
      OUT
  
  for i in range(2):
      print i
      lat = data['lat'][i]
      lon = data['lon'][i]
      print lat, lon,type(lat), type(lon)
      zone1 = point_in_poly(lat, lon, zone1)
      print zone1
  #I got an error as below
  
   File "point_in_poly.py", line 8, in point_in_poly
      if (x,y) in poly: return "IN"
  TypeError: 'in &lt;string&gt;' requires string as left operand, not tuple
  </code></pre>