In [8]:
import geopandas as gpd
import pandas as pd
import pylab as pl
%pylab inline
In [4]:
entr = gpd.read_file('./subway_entrances_may2016.shp')
entr.crs
# EPSG:4269 -> http://spatialreference.org/ref/epsg/4269/
Out[4]:
In [11]:
len(entr)
Out[11]:
In [12]:
entr.plot()
Out[12]:
In [44]:
# entr.geometry.buffer(100)[:20].plot(figsize=(5,5))
In [20]:
entr_buffer = entr.copy()
entr_buffer.geometry = entr.geometry.buffer(100)
In [33]:
entr_buffer.columns
Out[33]:
In [41]:
entr_buffer.head(20).groupby(entr_buffer['Station_Na']).size()
Out[41]:
In [42]:
entr_buffer.head(20).plot(figsize=(5,5))
Out[42]:
In [45]:
entr_buffer.to_file('entr_buffer_100_feet_epsg4269_nad83')
In [48]:
entr_buffer.crs
Out[48]:
In [60]:
entr_buffer.ix[0]
Out[60]: