title: Pandas: DataFrame function call returning same results for all rows
body: <p>I have a DataFrame with the following columns:    </p>
  
  <pre><code>link    sqft    rent    bedroom     address1    address2    address3    bathroom
  </code></pre>
  
  <p>I have a function that takes 3 addresses as input then returns the latitude and longtitude as a <code>dict</code>.</p>
  
  <p>When I apply the function like this ...</p>
  
  <pre><code>df['lat'] = return_coordinates(df.address1,df.address2,df.addresse3).get('Latitude')
  </code></pre>
  
  <p>... the <code>lat</code> column contains the same value.</p>
  
  <p>Here's the function:</p>
  
  <pre><code>import herepy
  
  geocoderApi = herepy.GeocoderApi('ap_key')
  def return_coordinates(address1,address2,address3):
      response = geocoderApi.free_form('{},{},{}'.format(address1,address2,address3))
      geocode = response.as_dict()
      geocode = geocode.get('Response')
      geocode = geocode.get('View')
      value =  (geocode[0].get('Result')[0].get('Location').get('DisplayPosition'))
      return value
  </code></pre>