Pandas apply to dateframe produces '<built-in method values of …'
I'm trying to build a GeoJSON object . My input is a csv with an address column, a lat column, and a lon column. I then created Shapely points out of the coordinates , buffer them out by a given radius, and get the dictionary of coordinates via the mapping option- so far, so good. Then, after referring to this question , I wrote the following function to get a Series of dictionaries: def make_geojson(row): return {'geometry':row['geom'], 'properties':{'address':row['address']}} and I applied it thusly: data['new_output'] = data.apply(make_geojson, axis=1) My resulting column is full of these: