kjordahl/geopandas — pull request #75 by cfarmer (2013-11-18 04:23:23+00:00)
Title: ENH: Allow setting geometry property via XY coords (two columns)

This PR allows the user to specify two columns (X and Y) to the `set_geometry` method. This will allow a DataFrame with Lat, Lon, fields to be easily converted to a GeoDataFrame.

```python
df = GeoDataFrame({"A": [1,2,3,4,5,6],
"B": [6,5,4,3,2,1],
"X": [1,2,3,4,5,6],
"Y": [1,2,3,4,5,6]})
df.set_geometry(["X", "Y"], inplace=True, drop=False)
```