From dd30ed685b03266e882517bad02c6b526b8a306e Mon Sep 17 00:00:00 2001 From: Justin Williams Date: Wed, 20 Oct 2021 07:55:51 -0400 Subject: [PATCH] deleted api nb --- data_gathering_chicago_400.ipynb | 992 +++++++------------------------ 1 file changed, 230 insertions(+), 762 deletions(-) diff --git a/data_gathering_chicago_400.ipynb b/data_gathering_chicago_400.ipynb index f51afaf..53bb3bc 100644 --- a/data_gathering_chicago_400.ipynb +++ b/data_gathering_chicago_400.ipynb @@ -18,7 +18,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "id": "f0774b55", "metadata": {}, "outputs": [], @@ -63,7 +63,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "id": "41e55160", "metadata": {}, "outputs": [], @@ -288,6 +288,98 @@ "forestry.head()" ] }, + { + "cell_type": "markdown", + "id": "liable-dialogue", + "metadata": {}, + "source": [ + "### Open Spaces - Boulevards\n", + "\n", + "Description\n", + "- Multipolgon\n", + "- 18 records\n", + "- no null values\n", + "- NAD83 EPSG: 3435" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "competent-entity", + "metadata": {}, + "outputs": [], + "source": [ + "open_spaces = gpd.read_file(\"zip:///Users/justinwilliams/projects/chicago400/data/Openspaces_Boulevards.zip\")\n", + "open_spaces.name = 'open_spaces'" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "radical-coordinator", + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "RangeIndex: 18 entries, 0 to 17\n", + "Data columns (total 7 columns):\n", + " # Column Non-Null Count Dtype \n", + "--- ------ -------------- ----- \n", + " 0 ID 18 non-null int64 \n", + " 1 SQ_FOOTAGE 18 non-null float64 \n", + " 2 ACREAGE 18 non-null float64 \n", + " 3 CA 18 non-null int64 \n", + " 4 SHAPE_AREA 18 non-null float64 \n", + " 5 SHAPE_LEN 18 non-null float64 \n", + " 6 geometry 18 non-null geometry\n", + "dtypes: float64(4), geometry(1), int64(2)\n", + "memory usage: 1.1 KB\n" + ] + } + ], + "source": [ + "open_spaces.info()" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "insured-missile", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "\n", + "Name: NAD83 / Illinois East (ftUS)\n", + "Axis Info [cartesian]:\n", + "- X[east]: Easting (US survey foot)\n", + "- Y[north]: Northing (US survey foot)\n", + "Area of Use:\n", + "- name: USA - Illinois - SPCS - E\n", + "- bounds: (-89.28, 37.06, -87.02, 42.5)\n", + "Coordinate Operation:\n", + "- name: SPCS83 Illinois East zone (US Survey feet)\n", + "- method: Transverse Mercator\n", + "Datum: North American Datum 1983\n", + "- Ellipsoid: GRS 1980\n", + "- Prime Meridian: Greenwich" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "open_spaces.crs" + ] + }, { "cell_type": "markdown", "id": "7e77284e", @@ -305,7 +397,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 9, "id": "486cd954", "metadata": {}, "outputs": [], @@ -318,7 +410,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 10, "id": "8db51da0", "metadata": {}, "outputs": [ @@ -357,7 +449,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 11, "id": "855bbcf5", "metadata": {}, "outputs": [ @@ -377,7 +469,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 8, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -388,7 +480,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 12, "id": "564e1809", "metadata": { "scrolled": true @@ -557,7 +649,7 @@ "4 LINESTRING (-87.67674 41.88498, -87.67706 41.8... " ] }, - "execution_count": 9, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -581,7 +673,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 13, "id": "573eb41c", "metadata": {}, "outputs": [], @@ -594,7 +686,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 14, "id": "6970bcb0", "metadata": {}, "outputs": [ @@ -627,7 +719,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 15, "id": "37188f45", "metadata": {}, "outputs": [ @@ -647,7 +739,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 12, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -658,7 +750,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 16, "id": "2c5ced0e", "metadata": {}, "outputs": [ @@ -782,7 +874,7 @@ "4 POINT (-87.60173 41.75375) " ] }, - "execution_count": 13, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -806,7 +898,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 17, "id": "227b6042", "metadata": { "scrolled": true @@ -820,7 +912,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 18, "id": "1c06168b", "metadata": { "scrolled": true @@ -893,7 +985,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 19, "id": "eabf8b82", "metadata": {}, "outputs": [ @@ -913,7 +1005,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 16, + "execution_count": 19, "metadata": {}, "output_type": "execute_result" } @@ -924,7 +1016,7 @@ }, { "cell_type": "code", - "execution_count": 56, + "execution_count": 20, "id": "2b838905", "metadata": {}, "outputs": [ @@ -959,33 +1051,7 @@ " addr_str_1\n", " addr_str_2\n", " addr_str_3\n", - " amenity\n", - " building\n", - " building_l\n", - " chicago_bu\n", - " name\n", - " type\n", - " ele\n", - " gnis_count\n", - " gnis_creat\n", - " gnis_featu\n", - " gnis_state\n", - " operator\n", - " website\n", - " wikidata\n", - " addr_state\n", - " grades\n", - " operator_t\n", - " denominati\n", - " landuse\n", - " religion\n", - " wikipedia\n", - " descriptio\n", - " wheelchair\n", - " addr_hou_1\n", - " name_es\n", - " old_name\n", - " phone\n", + " ...\n", " gnis_edite\n", " name_lv\n", " school\n", @@ -1011,33 +1077,7 @@ " 19th\n", " West\n", " Street\n", - " school\n", - " school\n", - " 2\n", - " 382168\n", - " schools_osm\n", - " multipolygon\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", + " ...\n", " None\n", " None\n", " None\n", @@ -1061,33 +1101,7 @@ " Roosevelt\n", " West\n", " Road\n", - " school\n", - " yes\n", - " None\n", - " 371010\n", - " schools_osm\n", - " multipolygon\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", + " ...\n", " None\n", " None\n", " None\n", @@ -1111,33 +1125,7 @@ " None\n", " None\n", " None\n", - " school\n", - " yes\n", - " None\n", - " 434214\n", - " schools_osm\n", - " multipolygon\n", - " 183\n", - " 031\n", - " 09/30/1999\n", - " 413713\n", - " 17\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", + " ...\n", " None\n", " None\n", " None\n", @@ -1161,33 +1149,7 @@ " None\n", " None\n", " None\n", - " school\n", - " None\n", - " None\n", - " None\n", - " schools_osm\n", - " multipolygon\n", - " 181\n", - " 031\n", - " 05/03/1999\n", - " 1837213\n", - " 17\n", - " Chicago Public Schools\n", - " https://www.wyoung.org/\n", - " Q7996715\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", + " ...\n", " None\n", " None\n", " None\n", @@ -1211,33 +1173,7 @@ " None\n", " None\n", " None\n", - " school\n", - " None\n", - " None\n", - " None\n", - " schools_osm\n", - " multipolygon\n", - " 182\n", - " 031\n", - " 04/01/1999\n", - " 1826704\n", - " 17\n", - " Chicago Public Schools\n", - " None\n", - " Q7351646\n", - " IL\n", - " 9-12\n", - " public\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", + " ...\n", " None\n", " None\n", " None\n", @@ -1251,6 +1187,7 @@ " \n", " \n", "\n", + "

5 rows × 47 columns

\n", "" ], "text/plain": [ @@ -1261,64 +1198,31 @@ "3 r5241077 5241077 relation Chicago 211 60607 \n", "4 r5245906 5245906 relation Chicago 1147 60622 \n", "\n", - " addr_stree addr_str_1 addr_str_2 addr_str_3 amenity building \\\n", - "0 West 19th Street 19th West Street school school \n", - "1 West Roosevelt Road Roosevelt West Road school yes \n", - "2 None None None None school yes \n", - "3 South Laflin Street None None None school None \n", - "4 North Western Avenue None None None school None \n", - "\n", - " building_l chicago_bu name type ele gnis_count \\\n", - "0 2 382168 schools_osm multipolygon None None \n", - "1 None 371010 schools_osm multipolygon None None \n", - "2 None 434214 schools_osm multipolygon 183 031 \n", - "3 None None schools_osm multipolygon 181 031 \n", - "4 None None schools_osm multipolygon 182 031 \n", + " addr_stree addr_str_1 addr_str_2 addr_str_3 ... gnis_edite \\\n", + "0 West 19th Street 19th West Street ... None \n", + "1 West Roosevelt Road Roosevelt West Road ... None \n", + "2 None None None None ... None \n", + "3 South Laflin Street None None None ... None \n", + "4 North Western Avenue None None None ... None \n", "\n", - " gnis_creat gnis_featu gnis_state operator \\\n", - "0 None None None None \n", - "1 None None None None \n", - "2 09/30/1999 413713 17 None \n", - "3 05/03/1999 1837213 17 Chicago Public Schools \n", - "4 04/01/1999 1826704 17 Chicago Public Schools \n", - "\n", - " website wikidata addr_state grades operator_t denominati \\\n", - "0 None None None None None None \n", - "1 None None None None None None \n", - "2 None None None None None None \n", - "3 https://www.wyoung.org/ Q7996715 None None None None \n", - "4 None Q7351646 IL 9-12 public None \n", - "\n", - " landuse religion wikipedia descriptio wheelchair addr_hou_1 name_es \\\n", - "0 None None None None None None None \n", - "1 None None None None None None None \n", - "2 None None None None None None None \n", - "3 None None None None None None None \n", - "4 None None None None None None None \n", - "\n", - " old_name phone gnis_edite name_lv school school_for alt_name disused \\\n", - "0 None None None None None None None None \n", - "1 None None None None None None None None \n", - "2 None None None None None None None None \n", - "3 None None None None None None None None \n", - "4 None None None None None None None None \n", - "\n", - " name_en operator_1 parking \\\n", - "0 None None None \n", - "1 None None None \n", - "2 None None None \n", - "3 None None None \n", - "4 None None None \n", + " name_lv school school_for alt_name disused name_en operator_1 parking \\\n", + "0 None None None None None None None None \n", + "1 None None None None None None None None \n", + "2 None None None None None None None None \n", + "3 None None None None None None None None \n", + "4 None None None None None None None None \n", "\n", " geometry \n", "0 POLYGON ((-87.70042 41.85538, -87.70021 41.855... \n", "1 POLYGON ((-87.67103 41.86714, -87.67104 41.867... \n", "2 POLYGON ((-87.61625 41.81400, -87.61626 41.814... \n", "3 MULTIPOLYGON (((-87.66417 41.87649, -87.66418 ... \n", - "4 MULTIPOLYGON (((-87.68682 41.90291, -87.68472 ... " + "4 MULTIPOLYGON (((-87.68682 41.90291, -87.68472 ... \n", + "\n", + "[5 rows x 47 columns]" ] }, - "execution_count": 56, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" } @@ -1329,7 +1233,7 @@ }, { "cell_type": "code", - "execution_count": 58, + "execution_count": 21, "id": "dcaa070e", "metadata": {}, "outputs": [ @@ -1350,7 +1254,7 @@ "Name: name, Length: 725, dtype: object" ] }, - "execution_count": 58, + "execution_count": 21, "metadata": {}, "output_type": "execute_result" } @@ -1374,7 +1278,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 22, "id": "6ba6537d", "metadata": {}, "outputs": [], @@ -1387,7 +1291,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 23, "id": "c467416b", "metadata": {}, "outputs": [ @@ -1424,7 +1328,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 24, "id": "3fb6e693", "metadata": {}, "outputs": [ @@ -1579,7 +1483,7 @@ "4 POLYGON ((452520.280 4594007.683, 452517.026 4... " ] }, - "execution_count": 21, + "execution_count": 24, "metadata": {}, "output_type": "execute_result" } @@ -1590,7 +1494,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 25, "id": "96939ebe", "metadata": {}, "outputs": [], @@ -1600,7 +1504,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 26, "id": "ca65e298", "metadata": {}, "outputs": [ @@ -1610,7 +1514,7 @@ "2332" ] }, - "execution_count": 23, + "execution_count": 26, "metadata": {}, "output_type": "execute_result" } @@ -1621,7 +1525,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 27, "id": "128a6bdb", "metadata": {}, "outputs": [ @@ -1631,7 +1535,7 @@ "'school_cook_county'" ] }, - "execution_count": 24, + "execution_count": 27, "metadata": {}, "output_type": "execute_result" } @@ -1650,7 +1554,7 @@ }, { "cell_type": "code", - "execution_count": 70, + "execution_count": 28, "id": "a7cd1513", "metadata": {}, "outputs": [], @@ -1662,7 +1566,7 @@ }, { "cell_type": "code", - "execution_count": 71, + "execution_count": 29, "id": "e445f886", "metadata": {}, "outputs": [ @@ -1768,7 +1672,7 @@ }, { "cell_type": "code", - "execution_count": 72, + "execution_count": 30, "id": "dc89781a", "metadata": {}, "outputs": [ @@ -1791,7 +1695,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 72, + "execution_count": 30, "metadata": {}, "output_type": "execute_result" } @@ -1802,7 +1706,7 @@ }, { "cell_type": "code", - "execution_count": 73, + "execution_count": 31, "id": "c11bbc86", "metadata": {}, "outputs": [ @@ -1837,68 +1741,7 @@ " Addr_type\n", " Type\n", " PlaceName\n", - " Place_addr\n", - " Phone\n", - " URL\n", - " Rank\n", - " AddBldg\n", - " AddNum\n", - " AddNumFrom\n", - " AddNumTo\n", - " AddRange\n", - " Side\n", - " StPreDir\n", - " StPreType\n", - " StName\n", - " StType\n", - " StDir\n", - " BldgType\n", - " BldgName\n", - " LevelType\n", - " LevelName\n", - " UnitType\n", - " UnitName\n", - " SubAddr\n", - " StAddr\n", - " Block\n", - " Sector\n", - " Nbrhd\n", - " District\n", - " City\n", - " MetroArea\n", - " Subregion\n", - " Region\n", - " RegionAbbr\n", - " Territory\n", - " Zone\n", - " Postal\n", - " PostalExt\n", - " Country\n", - " LangCode\n", - " Distance\n", - " X\n", - " Y\n", - " DisplayX\n", - " DisplayY\n", - " Xmin\n", - " Xmax\n", - " Ymin\n", - " Ymax\n", - " ExInfo\n", - " IN_Address\n", - " IN_Addre_1\n", - " IN_Addre_2\n", - " IN_Neighbo\n", - " IN_City\n", - " IN_Subregi\n", - " IN_Region\n", - " IN_Postal\n", - " IN_PostalE\n", - " IN_Country\n", - " USER_RecTy\n", - " USER_Type\n", - " USER_Schoo\n", - " USER_Facil\n", + " ...\n", " USER_Addre\n", " USER_City\n", " USER_Zip\n", @@ -1920,72 +1763,11 @@ " A\n", " 315 Summit St, Rockford, Illinois, 61107\n", " 315 Summit St, Rockford, IL, 61107, USA\n", - " 315 Summit St\n", - " PointAddress\n", - " None\n", - " None\n", - " 315 Summit St, Rockford, Illinois, 61107\n", - " None\n", - " None\n", - " 20.0\n", - " None\n", - " 315\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " Summit\n", - " St\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " 315 Summit St\n", - " None\n", - " None\n", - " None\n", - " None\n", - " Rockford\n", - " None\n", - " Winnebago County\n", - " Illinois\n", - " IL\n", - " None\n", - " None\n", - " 61107\n", - " 4231\n", - " USA\n", - " ENG\n", - " 0.0\n", - " -89.073527\n", - " 42.269867\n", - " -89.073055\n", - " 42.269862\n", - " -89.074055\n", - " -89.072055\n", - " 42.268862\n", - " 42.270862\n", - " None\n", - " 315 Summit St\n", - " None\n", - " None\n", - " None\n", - " Rockford\n", - " None\n", - " None\n", - " 61107 4231\n", + " 315 Summit St\n", + " PointAddress\n", " None\n", " None\n", - " District Authorized Charter Sch\n", - " 25\n", - " 203C\n", - " Jackson Charter School\n", + " ...\n", " 315 Summit St\n", " Rockford\n", " 61107 4231\n", @@ -2009,68 +1791,7 @@ " PointAddress\n", " None\n", " None\n", - " 2605 School St, Rockford, Illinois, 61101\n", - " None\n", - " None\n", - " 20.0\n", - " None\n", - " 2605\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " School\n", - " St\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " 2605 School St\n", - " None\n", - " None\n", - " None\n", - " None\n", - " Rockford\n", - " None\n", - " Winnebago County\n", - " Illinois\n", - " IL\n", - " None\n", - " None\n", - " 61101\n", - " 5264\n", - " USA\n", - " ENG\n", - " 0.0\n", - " -89.127548\n", - " 42.281013\n", - " -89.127552\n", - " 42.281514\n", - " -89.128552\n", - " -89.126552\n", - " 42.280514\n", - " 42.282514\n", - " None\n", - " 2605 School St\n", - " None\n", - " None\n", - " None\n", - " Rockford\n", - " None\n", - " None\n", - " 61101 5264\n", - " None\n", - " None\n", - " District Authorized Charter Sch\n", - " 25\n", - " 202C\n", - " Galapagos Rockford Charter Sch\n", + " ...\n", " 2605 School St\n", " Rockford\n", " 61101 5264\n", @@ -2094,68 +1815,7 @@ " PointAddress\n", " None\n", " None\n", - " 6201 S Stewart Ave, Chicago, Illinois, 60621\n", - " None\n", - " None\n", - " 20.0\n", - " None\n", - " 6201\n", - " None\n", - " None\n", - " None\n", - " None\n", - " S\n", - " None\n", - " Stewart\n", - " Ave\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " 6201 S Stewart Ave\n", - " None\n", - " None\n", - " None\n", - " None\n", - " Chicago\n", - " None\n", - " Cook County\n", - " Illinois\n", - " IL\n", - " None\n", - " None\n", - " 60621\n", - " 3247\n", - " USA\n", - " ENG\n", - " 0.0\n", - " -87.635065\n", - " 41.781817\n", - " -87.634229\n", - " 41.781862\n", - " -87.635229\n", - " -87.633229\n", - " 41.780862\n", - " 41.782862\n", - " None\n", - " 6201 S Stewart Ave\n", - " None\n", - " None\n", - " None\n", - " Chicago\n", - " None\n", - " None\n", - " 60621 3247\n", - " None\n", - " None\n", - " District Authorized Charter Sch\n", - " 25\n", - " 010C\n", - " Urban Prep Chtr Acad Englewood HS\n", + " ...\n", " 6201 S Stewart Ave\n", " Chicago\n", " 60621 3247\n", @@ -2179,68 +1839,7 @@ " PointAddress\n", " None\n", " None\n", - " 2520 S Western Ave, Chicago, Illinois, 60608\n", - " None\n", - " None\n", - " 20.0\n", - " None\n", - " 2520\n", - " None\n", - " None\n", - " None\n", - " None\n", - " S\n", - " None\n", - " Western\n", - " Ave\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " None\n", - " 2520 S Western Ave\n", - " None\n", - " None\n", - " None\n", - " None\n", - " Chicago\n", - " None\n", - " Cook County\n", - " Illinois\n", - " IL\n", - " None\n", - " None\n", - " 60608\n", - " 4808\n", - " USA\n", - " ENG\n", - " 0.0\n", - " -87.685478\n", - " 41.845675\n", - " -87.685858\n", - " 41.845664\n", - " -87.686858\n", - " -87.684858\n", - " 41.844664\n", - " 41.846664\n", - " None\n", - " 2520 S Western Ave\n", - " None\n", - " None\n", - " None\n", - " Chicago\n", - " None\n", - " None\n", - " 60608 4809\n", - " None\n", - " None\n", - " District Authorized Charter Sch\n", - " 25\n", - " 012C\n", - " IHSCA Charter High School\n", + " ...\n", " 2520 S Western Ave\n", " Chicago\n", " 60608 4809\n", @@ -2264,68 +1863,7 @@ " Subaddress\n", " None\n", " None\n", - " 1 N State St, Floor 7, Chicago, Illinois, 60602\n", - " None\n", - " None\n", - " 20.0\n", - " None\n", - " 1\n", - " None\n", - " None\n", - " None\n", - " None\n", - " N\n", - " None\n", - " State\n", - " St\n", - " None\n", - " None\n", - " None\n", - " Floor\n", - " 7\n", - " None\n", - " None\n", - " Floor 7\n", - " 1 N State St\n", - " None\n", - " None\n", - " None\n", - " None\n", - " Chicago\n", - " None\n", - " Cook County\n", - " Illinois\n", - " IL\n", - " None\n", - " None\n", - " 60602\n", - " 3311\n", - " USA\n", - " ENG\n", - " 0.0\n", - " -87.627803\n", - " 41.882572\n", - " -87.627007\n", - " 41.882637\n", - " -87.628007\n", - " -87.626007\n", - " 41.881637\n", - " 41.883637\n", - " None\n", - " 1 N State St Fl 7TH\n", - " None\n", - " None\n", - " None\n", - " Chicago\n", - " None\n", - " None\n", - " 60602 3302\n", - " None\n", - " None\n", - " District Authorized Charter Sch\n", - " 25\n", - " 006C\n", - " Noble Street Charter Schools\n", + " ...\n", " 1 N State St Fl 7TH\n", " Chicago\n", " 60602 3302\n", @@ -2339,6 +1877,7 @@ " \n", " \n", "\n", + "

5 rows × 82 columns

\n", "" ], "text/plain": [ @@ -2363,89 +1902,12 @@ "3 2520 S Western Ave, Chicago, IL, 60608, USA 2520 S Western Ave \n", "4 1 N State St, Floor 7, Chicago, IL, 60602, USA 1 N State St, Floor 7 \n", "\n", - " Addr_type Type PlaceName \\\n", - "0 PointAddress None None \n", - "1 PointAddress None None \n", - "2 PointAddress None None \n", - "3 PointAddress None None \n", - "4 Subaddress None None \n", - "\n", - " Place_addr Phone URL Rank AddBldg \\\n", - "0 315 Summit St, Rockford, Illinois, 61107 None None 20.0 None \n", - "1 2605 School St, Rockford, Illinois, 61101 None None 20.0 None \n", - "2 6201 S Stewart Ave, Chicago, Illinois, 60621 None None 20.0 None \n", - "3 2520 S Western Ave, Chicago, Illinois, 60608 None None 20.0 None \n", - "4 1 N State St, Floor 7, Chicago, Illinois, 60602 None None 20.0 None \n", - "\n", - " AddNum AddNumFrom AddNumTo AddRange Side StPreDir StPreType StName \\\n", - "0 315 None None None None None None Summit \n", - "1 2605 None None None None None None School \n", - "2 6201 None None None None S None Stewart \n", - "3 2520 None None None None S None Western \n", - "4 1 None None None None N None State \n", - "\n", - " StType StDir BldgType BldgName LevelType LevelName UnitType UnitName \\\n", - "0 St None None None None None None None \n", - "1 St None None None None None None None \n", - "2 Ave None None None None None None None \n", - "3 Ave None None None None None None None \n", - "4 St None None None Floor 7 None None \n", - "\n", - " SubAddr StAddr Block Sector Nbrhd District City \\\n", - "0 None 315 Summit St None None None None Rockford \n", - "1 None 2605 School St None None None None Rockford \n", - "2 None 6201 S Stewart Ave None None None None Chicago \n", - "3 None 2520 S Western Ave None None None None Chicago \n", - "4 Floor 7 1 N State St None None None None Chicago \n", - "\n", - " MetroArea Subregion Region RegionAbbr Territory Zone Postal \\\n", - "0 None Winnebago County Illinois IL None None 61107 \n", - "1 None Winnebago County Illinois IL None None 61101 \n", - "2 None Cook County Illinois IL None None 60621 \n", - "3 None Cook County Illinois IL None None 60608 \n", - "4 None Cook County Illinois IL None None 60602 \n", - "\n", - " PostalExt Country LangCode Distance X Y DisplayX \\\n", - "0 4231 USA ENG 0.0 -89.073527 42.269867 -89.073055 \n", - "1 5264 USA ENG 0.0 -89.127548 42.281013 -89.127552 \n", - "2 3247 USA ENG 0.0 -87.635065 41.781817 -87.634229 \n", - "3 4808 USA ENG 0.0 -87.685478 41.845675 -87.685858 \n", - "4 3311 USA ENG 0.0 -87.627803 41.882572 -87.627007 \n", - "\n", - " DisplayY Xmin Xmax Ymin Ymax ExInfo \\\n", - "0 42.269862 -89.074055 -89.072055 42.268862 42.270862 None \n", - "1 42.281514 -89.128552 -89.126552 42.280514 42.282514 None \n", - "2 41.781862 -87.635229 -87.633229 41.780862 41.782862 None \n", - "3 41.845664 -87.686858 -87.684858 41.844664 41.846664 None \n", - "4 41.882637 -87.628007 -87.626007 41.881637 41.883637 None \n", - "\n", - " IN_Address IN_Addre_1 IN_Addre_2 IN_Neighbo IN_City IN_Subregi \\\n", - "0 315 Summit St None None None Rockford None \n", - "1 2605 School St None None None Rockford None \n", - "2 6201 S Stewart Ave None None None Chicago None \n", - "3 2520 S Western Ave None None None Chicago None \n", - "4 1 N State St Fl 7TH None None None Chicago None \n", - "\n", - " IN_Region IN_Postal IN_PostalE IN_Country \\\n", - "0 None 61107 4231 None None \n", - "1 None 61101 5264 None None \n", - "2 None 60621 3247 None None \n", - "3 None 60608 4809 None None \n", - "4 None 60602 3302 None None \n", - "\n", - " USER_RecTy USER_Type USER_Schoo \\\n", - "0 District Authorized Charter Sch 25 203C \n", - "1 District Authorized Charter Sch 25 202C \n", - "2 District Authorized Charter Sch 25 010C \n", - "3 District Authorized Charter Sch 25 012C \n", - "4 District Authorized Charter Sch 25 006C \n", - "\n", - " USER_Facil USER_Addre USER_City \\\n", - "0 Jackson Charter School 315 Summit St Rockford \n", - "1 Galapagos Rockford Charter Sch 2605 School St Rockford \n", - "2 Urban Prep Chtr Acad Englewood HS 6201 S Stewart Ave Chicago \n", - "3 IHSCA Charter High School 2520 S Western Ave Chicago \n", - "4 Noble Street Charter Schools 1 N State St Fl 7TH Chicago \n", + " Addr_type Type PlaceName ... USER_Addre USER_City \\\n", + "0 PointAddress None None ... 315 Summit St Rockford \n", + "1 PointAddress None None ... 2605 School St Rockford \n", + "2 PointAddress None None ... 6201 S Stewart Ave Chicago \n", + "3 PointAddress None None ... 2520 S Western Ave Chicago \n", + "4 Subaddress None None ... 1 N State St Fl 7TH Chicago \n", "\n", " USER_Zip USER_Telep USER_Grade USER_State USER_StSen USER_FedCo \\\n", "0 61107 4231 815316-0093 K-5 067 34 17 \n", @@ -2459,10 +1921,12 @@ "1 4 POINT (324576.061 4683224.920) \n", "2 4 POINT (447295.532 4625751.440) \n", "3 4 POINT (443061.673 4632868.063) \n", - "4 4 POINT (447977.351 4636935.718) " + "4 4 POINT (447977.351 4636935.718) \n", + "\n", + "[5 rows x 82 columns]" ] }, - "execution_count": 73, + "execution_count": 31, "metadata": {}, "output_type": "execute_result" } @@ -2485,7 +1949,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 32, "id": "37fce1ee", "metadata": {}, "outputs": [], @@ -2498,7 +1962,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 33, "id": "452730c0", "metadata": {}, "outputs": [ @@ -2527,7 +1991,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 34, "id": "28cdd8ce", "metadata": {}, "outputs": [ @@ -2580,7 +2044,7 @@ "0 MULTIPOLYGON (((-87.93514 42.00089, -87.93521 ... " ] }, - "execution_count": 27, + "execution_count": 34, "metadata": {}, "output_type": "execute_result" } @@ -2591,7 +2055,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 35, "id": "6a7e403f", "metadata": { "scrolled": true @@ -2613,7 +2077,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 28, + "execution_count": 35, "metadata": {}, "output_type": "execute_result" } @@ -2624,7 +2088,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 36, "id": "5a077513", "metadata": {}, "outputs": [ @@ -2661,7 +2125,7 @@ }, { "cell_type": "code", - "execution_count": 63, + "execution_count": 37, "id": "d1577a0f", "metadata": {}, "outputs": [], @@ -2673,7 +2137,7 @@ }, { "cell_type": "code", - "execution_count": 64, + "execution_count": 38, "id": "a878ed3d", "metadata": {}, "outputs": [ @@ -2703,7 +2167,7 @@ }, { "cell_type": "code", - "execution_count": 65, + "execution_count": 39, "id": "ffe88855", "metadata": {}, "outputs": [ @@ -2726,7 +2190,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 65, + "execution_count": 39, "metadata": {}, "output_type": "execute_result" } @@ -2749,7 +2213,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 40, "id": "3d4bd787", "metadata": {}, "outputs": [], @@ -2762,7 +2226,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 41, "id": "144172be", "metadata": { "scrolled": true @@ -2869,7 +2333,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 42, "id": "a6e1e18a", "metadata": {}, "outputs": [ @@ -2889,7 +2353,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 32, + "execution_count": 42, "metadata": {}, "output_type": "execute_result" } @@ -2900,7 +2364,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 43, "id": "2debeea3", "metadata": {}, "outputs": [ @@ -3533,7 +2997,7 @@ "4 0.0 60617 0.0 POLYGON ((-87.54799 41.74462, -87.54796 41.743... " ] }, - "execution_count": 33, + "execution_count": 43, "metadata": {}, "output_type": "execute_result" } @@ -3545,7 +3009,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 44, "id": "0f267a99", "metadata": {}, "outputs": [ @@ -3565,7 +3029,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 34, + "execution_count": 44, "metadata": {}, "output_type": "execute_result" } @@ -3584,7 +3048,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 45, "id": "7f7801bb", "metadata": {}, "outputs": [], @@ -3597,7 +3061,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 46, "id": "8e01d505", "metadata": {}, "outputs": [ @@ -3619,7 +3083,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 47, "id": "b055d3af", "metadata": {}, "outputs": [ @@ -3642,7 +3106,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 15, + "execution_count": 47, "metadata": {}, "output_type": "execute_result" } @@ -3653,7 +3117,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 48, "id": "85b00b30", "metadata": {}, "outputs": [ @@ -4584,7 +4048,7 @@ "4 12221.207744 POLYGON ((400379.945 4659062.450, 400359.867 4... " ] }, - "execution_count": 16, + "execution_count": 48, "metadata": {}, "output_type": "execute_result" } @@ -4595,7 +4059,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 49, "id": "challenging-reserve", "metadata": {}, "outputs": [ @@ -4607,7 +4071,7 @@ "Name: Subregion, dtype: int64" ] }, - "execution_count": 17, + "execution_count": 49, "metadata": {}, "output_type": "execute_result" } @@ -4618,7 +4082,7 @@ }, { "cell_type": "code", - "execution_count": 85, + "execution_count": 50, "id": "eb1dc28c", "metadata": {}, "outputs": [ @@ -4628,7 +4092,7 @@ "1472" ] }, - "execution_count": 85, + "execution_count": 50, "metadata": {}, "output_type": "execute_result" } @@ -4647,7 +4111,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 51, "id": "064bbe3c", "metadata": {}, "outputs": [], @@ -4659,7 +4123,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 52, "id": "8e903aba", "metadata": {}, "outputs": [ @@ -4769,7 +4233,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 53, "id": "55d577b9", "metadata": {}, "outputs": [ @@ -4792,7 +4256,7 @@ "- Prime Meridian: Greenwich" ] }, - "execution_count": 8, + "execution_count": 53, "metadata": {}, "output_type": "execute_result" } @@ -4803,7 +4267,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 54, "id": "35f8398f", "metadata": {}, "outputs": [ @@ -5487,7 +4951,7 @@ "4 0 License issued (IL) POINT (414117.394 4653149.693) " ] }, - "execution_count": 12, + "execution_count": 54, "metadata": {}, "output_type": "execute_result" } @@ -5499,7 +4963,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 55, "id": "first-staff", "metadata": {}, "outputs": [ @@ -5521,22 +4985,22 @@ "Rock Island 47\n", "Macon 45\n", "DeKalb County 31\n", - "DuPage County 7\n", "Will County 7\n", + "DuPage County 7\n", "Kendall 6\n", "Champaign 6\n", "St Clair 4\n", - "Sangamon County 3\n", "McLean County 3\n", - "Rock Island County 2\n", - "Macon County 2\n", + "Sangamon County 3\n", "St. Clair County 2\n", - "DeKalb 1\n", + "Macon County 2\n", + "Rock Island County 2\n", "Peoria 1\n", + "DeKalb 1\n", "Name: Subregion, dtype: int64" ] }, - "execution_count": 10, + "execution_count": 55, "metadata": {}, "output_type": "execute_result" } @@ -5557,7 +5021,7 @@ }, { "cell_type": "code", - "execution_count": 74, + "execution_count": 56, "id": "e623ab4e", "metadata": {}, "outputs": [ @@ -5565,8 +5029,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "all_Schools\t all_schools\t bike_routes\t chicago_boundaries\t cities\t daycare\t daycare_all\t daycare_chicago_clip\t forestry\t \n", - "gdf\t parks\t public_schools\t school_cook_chicago_clip\t school_cook_county\t schools_all\t schools_osm\t \n" + "bike_routes\t chicago_boundaries\t cities\t daycare\t daycare_all\t forestry\t open_spaces\t parks\t public_schools\t \n", + "school_cook_county\t schools_all\t schools_osm\t \n" ] } ], @@ -5576,14 +5040,14 @@ }, { "cell_type": "code", - "execution_count": 90, + "execution_count": 57, "id": "6f29e0a5", "metadata": {}, "outputs": [], "source": [ "# list of all shpfiles\n", "shp_files = [bike_routes, daycare, daycare_all, schools_all, cities, forestry, parks, \n", - " public_schools, school_cook_county]" + " public_schools, school_cook_county, open_spaces]" ] }, { @@ -5596,7 +5060,7 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": 58, "id": "0bba8a8f", "metadata": {}, "outputs": [], @@ -5612,7 +5076,7 @@ }, { "cell_type": "code", - "execution_count": 42, + "execution_count": 59, "id": "f2d3993d", "metadata": {}, "outputs": [], @@ -5624,7 +5088,7 @@ }, { "cell_type": "code", - "execution_count": 43, + "execution_count": 60, "id": "d581cdc2", "metadata": {}, "outputs": [ @@ -5634,10 +5098,14 @@ "text": [ "bike_routes is in epsg:32616 crs\n", "daycare is in epsg:32616 crs\n", + "daycare_all is in epsg:32616 crs\n", + "all_schools is in epsg:32616 crs\n", + "cities is in epsg:32616 crs\n", "forestry is in epsg:32616 crs\n", "parks is in epsg:32616 crs\n", "public_schools is in epsg:32616 crs\n", - "school_cook_county is in EPSG:32616 crs\n" + "school_cook_county is in EPSG:32616 crs\n", + "open_spaces is in epsg:32616 crs\n" ] } ], @@ -5648,7 +5116,7 @@ }, { "cell_type": "code", - "execution_count": 44, + "execution_count": 61, "id": "d8cdd9bc", "metadata": {}, "outputs": [], @@ -5677,7 +5145,7 @@ }, { "cell_type": "code", - "execution_count": 91, + "execution_count": 63, "id": "f81c01b5", "metadata": { "scrolled": true @@ -5685,12 +5153,12 @@ "outputs": [], "source": [ "for gdf in shp_files:\n", - " gdf.to_pickle('./pickle/' + gdf.name)" + " gdf.to_pickle('./data/pickle/' + gdf.name)" ] }, { "cell_type": "code", - "execution_count": 50, + "execution_count": 64, "id": "a7e498fe", "metadata": {}, "outputs": [], @@ -5709,7 +5177,7 @@ }, { "cell_type": "code", - "execution_count": 62, + "execution_count": 65, "id": "127c4e34", "metadata": {}, "outputs": [], @@ -5720,7 +5188,7 @@ }, { "cell_type": "code", - "execution_count": 63, + "execution_count": 66, "id": "34c74b23", "metadata": {}, "outputs": [],