title: Google Geocode ValueError
body: <p>I'm currently trying to pull the latitude and longitude values from a series of addresses that are currently stored in a pandas dataframe. I have the following code currently:</p>
  <pre><code>import pandas as pd
  from googlemaps import Client as GoogleMaps
  
  GoogleAPIkey = &quot;myAPIkey&quot;
  gmaps = GoogleMaps(GoogleAPIkey)
  
  df = pd.read_csv(&quot;addresslist&quot;)
  </code></pre>
  <p>df output is as follows:</p>
  <pre><code> |Location                            |
  0|Robert Pitt Drive, Spring Valley, NY|
  1|Bryant Avenue, Harrison, NY         |
  </code></pre>
  <p>Ideally I'd like to have the following output:</p>
  <pre><code> |Location                            | Lat | Lon |
  0|Robert Pitt Drive, Spring Valley, NY|     |     | 
  1|Bryant Avenue, Harrison, NY         |     |     | 
  </code></pre>
  <p>I'm using the following code to create a new column in the df:</p>
  <pre><code>df[&quot;geocode_result&quot;] = gmaps.geocode(df[&quot;Location&quot;])
  </code></pre>
  <p>However, I get a ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().</p>
  <p>Do I need to convert my string series to another format to get the right value?</p>
  <p>Thanks</p>