Skip to content

Commit 49cbc31

Browse files
committed
double-check, run in esri
1 parent 67eb5c4 commit 49cbc31

File tree

1 file changed

+140
-7
lines changed

1 file changed

+140
-7
lines changed

high_quality_transit_areas/11_check_coronado_ferry.ipynb

+140-7
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 4,
67+
"execution_count": 5,
6868
"id": "58f32024-e3a2-4f0a-9b99-ecdb7feca234",
6969
"metadata": {
7070
"tags": []
@@ -76,7 +76,7 @@
7676
"'2025-04-16'"
7777
]
7878
},
79-
"execution_count": 4,
79+
"execution_count": 5,
8080
"metadata": {},
8181
"output_type": "execute_result"
8282
}
@@ -87,7 +87,7 @@
8787
},
8888
{
8989
"cell_type": "code",
90-
"execution_count": 5,
90+
"execution_count": 6,
9191
"id": "618eca73-e89f-4293-ad7c-abf7c0e5178b",
9292
"metadata": {
9393
"tags": []
@@ -99,7 +99,7 @@
9999
},
100100
{
101101
"cell_type": "code",
102-
"execution_count": 123,
102+
"execution_count": 7,
103103
"id": "39289e92-1061-46fe-ac08-935b0a75afa6",
104104
"metadata": {
105105
"tags": []
@@ -111,7 +111,7 @@
111111
"<module 'rail_ferry_brt_stops' from '/home/jovyan/data-analyses/high_quality_transit_areas/rail_ferry_brt_stops.py'>"
112112
]
113113
},
114-
"execution_count": 123,
114+
"execution_count": 7,
115115
"metadata": {},
116116
"output_type": "execute_result"
117117
}
@@ -1795,7 +1795,7 @@
17951795
},
17961796
{
17971797
"cell_type": "code",
1798-
"execution_count": 6,
1798+
"execution_count": 8,
17991799
"id": "f5082974-29bc-429a-9288-d2251e8b07c4",
18001800
"metadata": {
18011801
"tags": []
@@ -1805,6 +1805,139 @@
18051805
"path = f'{GCS_FILE_PATH}hqta_areas.parquet'"
18061806
]
18071807
},
1808+
{
1809+
"cell_type": "code",
1810+
"execution_count": 9,
1811+
"id": "14b64c3e-669b-4a5f-b5b7-47d966327522",
1812+
"metadata": {
1813+
"tags": []
1814+
},
1815+
"outputs": [],
1816+
"source": [
1817+
"gdf = gpd.read_parquet(path)"
1818+
]
1819+
},
1820+
{
1821+
"cell_type": "code",
1822+
"execution_count": 10,
1823+
"id": "6e3320f9-9ec6-4238-a319-08805990609e",
1824+
"metadata": {
1825+
"tags": []
1826+
},
1827+
"outputs": [
1828+
{
1829+
"data": {
1830+
"text/html": [
1831+
"<div>\n",
1832+
"<style scoped>\n",
1833+
" .dataframe tbody tr th:only-of-type {\n",
1834+
" vertical-align: middle;\n",
1835+
" }\n",
1836+
"\n",
1837+
" .dataframe tbody tr th {\n",
1838+
" vertical-align: top;\n",
1839+
" }\n",
1840+
"\n",
1841+
" .dataframe thead th {\n",
1842+
" text-align: right;\n",
1843+
" }\n",
1844+
"</style>\n",
1845+
"<table border=\"1\" class=\"dataframe\">\n",
1846+
" <thead>\n",
1847+
" <tr style=\"text-align: right;\">\n",
1848+
" <th></th>\n",
1849+
" <th>agency_primary</th>\n",
1850+
" <th>agency_secondary</th>\n",
1851+
" <th>hqta_type</th>\n",
1852+
" <th>hqta_details</th>\n",
1853+
" <th>route_id</th>\n",
1854+
" <th>base64_url_primary</th>\n",
1855+
" <th>base64_url_secondary</th>\n",
1856+
" <th>org_id_primary</th>\n",
1857+
" <th>org_id_secondary</th>\n",
1858+
" <th>geometry</th>\n",
1859+
" </tr>\n",
1860+
" </thead>\n",
1861+
" <tbody>\n",
1862+
" <tr>\n",
1863+
" <th>0</th>\n",
1864+
" <td>Alameda-Contra Costa Transit District</td>\n",
1865+
" <td>None</td>\n",
1866+
" <td>hq_corridor_bus</td>\n",
1867+
" <td>stop_along_hq_bus_corridor_single_operator</td>\n",
1868+
" <td>10</td>\n",
1869+
" <td>aHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW...</td>\n",
1870+
" <td>None</td>\n",
1871+
" <td>recOZgevYf7Jimm9L</td>\n",
1872+
" <td>None</td>\n",
1873+
" <td>MULTIPOLYGON (((-122.13315 37.69219, -122.1334...</td>\n",
1874+
" </tr>\n",
1875+
" <tr>\n",
1876+
" <th>1</th>\n",
1877+
" <td>Alameda-Contra Costa Transit District</td>\n",
1878+
" <td>None</td>\n",
1879+
" <td>hq_corridor_bus</td>\n",
1880+
" <td>stop_along_hq_bus_corridor_single_operator</td>\n",
1881+
" <td>14</td>\n",
1882+
" <td>aHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW...</td>\n",
1883+
" <td>None</td>\n",
1884+
" <td>recOZgevYf7Jimm9L</td>\n",
1885+
" <td>None</td>\n",
1886+
" <td>MULTIPOLYGON (((-122.22584 37.79946, -122.2256...</td>\n",
1887+
" </tr>\n",
1888+
" <tr>\n",
1889+
" <th>2</th>\n",
1890+
" <td>Alameda-Contra Costa Transit District</td>\n",
1891+
" <td>None</td>\n",
1892+
" <td>hq_corridor_bus</td>\n",
1893+
" <td>stop_along_hq_bus_corridor_single_operator</td>\n",
1894+
" <td>18</td>\n",
1895+
" <td>aHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW...</td>\n",
1896+
" <td>None</td>\n",
1897+
" <td>recOZgevYf7Jimm9L</td>\n",
1898+
" <td>None</td>\n",
1899+
" <td>MULTIPOLYGON (((-122.30800 37.89073, -122.3079...</td>\n",
1900+
" </tr>\n",
1901+
" </tbody>\n",
1902+
"</table>\n",
1903+
"</div>"
1904+
],
1905+
"text/plain": [
1906+
" agency_primary agency_secondary hqta_type \\\n",
1907+
"0 Alameda-Contra Costa Transit District None hq_corridor_bus \n",
1908+
"1 Alameda-Contra Costa Transit District None hq_corridor_bus \n",
1909+
"2 Alameda-Contra Costa Transit District None hq_corridor_bus \n",
1910+
"\n",
1911+
" hqta_details route_id \\\n",
1912+
"0 stop_along_hq_bus_corridor_single_operator 10 \n",
1913+
"1 stop_along_hq_bus_corridor_single_operator 14 \n",
1914+
"2 stop_along_hq_bus_corridor_single_operator 18 \n",
1915+
"\n",
1916+
" base64_url_primary base64_url_secondary \\\n",
1917+
"0 aHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW... None \n",
1918+
"1 aHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW... None \n",
1919+
"2 aHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW... None \n",
1920+
"\n",
1921+
" org_id_primary org_id_secondary \\\n",
1922+
"0 recOZgevYf7Jimm9L None \n",
1923+
"1 recOZgevYf7Jimm9L None \n",
1924+
"2 recOZgevYf7Jimm9L None \n",
1925+
"\n",
1926+
" geometry \n",
1927+
"0 MULTIPOLYGON (((-122.13315 37.69219, -122.1334... \n",
1928+
"1 MULTIPOLYGON (((-122.22584 37.79946, -122.2256... \n",
1929+
"2 MULTIPOLYGON (((-122.30800 37.89073, -122.3079... "
1930+
]
1931+
},
1932+
"execution_count": 10,
1933+
"metadata": {},
1934+
"output_type": "execute_result"
1935+
}
1936+
],
1937+
"source": [
1938+
"gdf.head(3)"
1939+
]
1940+
},
18081941
{
18091942
"cell_type": "code",
18101943
"execution_count": 9,
@@ -1814,7 +1947,7 @@
18141947
},
18151948
"outputs": [],
18161949
"source": [
1817-
"# gpd.read_parquet(path).query('hqta_type == \"major_stop_ferry\"').explore()"
1950+
"# gdf.query('hqta_type == \"major_stop_ferry\"').explore()"
18181951
]
18191952
}
18201953
],

0 commit comments

Comments
 (0)