title: TypeError: can only concatenate list (not “int”) to list. Help Needed
body: <p>This seems basic but have been giving me some headache. I have a CSV file and a function that calculates the UTM zone from the lat and long field. I keep getting this error. I am not sure what i am doing wrong. The Python function works when I pass a random lat and long values to the call function. But it gives an error, shown at the bottom, when I try to calculate from the CSV file in Pandas.</p>
  
  <p>The field has 6 header column: Date | AAA | BBB | Lat | Long | Distance</p>
  
  <p>Here is my code:</p>
  
  <pre><code>path2 = (r'C:\Users\newsample.csv')
  openfile2 = pd.read_csv(path2, header='infer')
  
  # Convert Long and Lat rows to list
  lon = (list(openfile2['Long']))
  lat = (list(openfile2['Lat']))
  latitude = []
  longitude = []
  
  for la in lat:
      la = pd.to_numeric(openfile2['Lat'])
      latitude.append(la)
  
  for lo in lon:
      lo = pd.to_numeric(openfile2['Long'])
      latitude.append(lo)
  
  # compute UTM zone for the rows
  def get_zone(lat, lon):
      zone = int((lon + 186) / 6)
      if lat &gt;= 56.0 and lat &lt; 64.0 and lon &gt;= 3.0 and lon &lt; 12.0:
          zone = 32
      if lat &gt;= 72.0 and lat &lt; 84.0:
          if lon &gt;= 0.0 and lon &lt; 9.0:
              zone = 31
          elif lon &gt;= 9.0 and lon &lt; 21.0:
              zone = 33
          elif lon &gt;= 21.0 and lon &lt; 33.0:
              zone = 35
          elif lon &gt;= 33.0 and lon &lt; 42.0:
              zone = 37
      if lat &gt; 0:
          cs = "EPSG::326" + str(zone)
      else:
          cs = "EPSG::327" + str(zone)
      return cs
  
  # Call function
  newfile = get_zone(latitude, longitude)
  print(newfile)
  </code></pre>
  
  <p>I get a <strong>TypeError: can only concatenate list (not "int") to list</strong></p>