NYC Evictions 2017–2020

Evictions
Evictions per Capita
Evictions Over Time
good_vars=['AddressNumber','StreetNamePreDirectional','StreetNamePreType','StreetName','StreetNamePostType','StreetNamePostDirectional']def generate_clean_address(raw_dict):
new_address = ''
try:
for var in good_vars:
if var in list(raw_dict.keys()):
if raw_dict[var] !=np.nan:
new_address=new_address+' '+str(raw_dict[var])
except:
new_address=np.nan
return new_address
def get_point(address):
try:
raw = geocoder.arcgis(address)
if raw.status !='OK':
return np.nan
else:
location = (raw.lat,raw.lng)
return location
except:
return np.nan
eviction_geo_tracts = geopandas.sjoin(geo_eviction_data, tract_map_merged, how="left", op='within',rsuffix='_tract')
Eviction Distribution (bin size=13.5)
Eviction per Capita Distribution (bin size=.0106)
Manhattan Evictions Dashboard
Bronx Dashboard
Brooklyn Dashboard
Queens Dashboard
True vs Predicted Values for an Elastic Net Model

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store