|
64 | 64 | },
|
65 | 65 | {
|
66 | 66 | "cell_type": "code",
|
67 |
| - "execution_count": 4, |
| 67 | + "execution_count": 5, |
68 | 68 | "id": "58f32024-e3a2-4f0a-9b99-ecdb7feca234",
|
69 | 69 | "metadata": {
|
70 | 70 | "tags": []
|
|
76 | 76 | "'2025-04-16'"
|
77 | 77 | ]
|
78 | 78 | },
|
79 |
| - "execution_count": 4, |
| 79 | + "execution_count": 5, |
80 | 80 | "metadata": {},
|
81 | 81 | "output_type": "execute_result"
|
82 | 82 | }
|
|
87 | 87 | },
|
88 | 88 | {
|
89 | 89 | "cell_type": "code",
|
90 |
| - "execution_count": 5, |
| 90 | + "execution_count": 6, |
91 | 91 | "id": "618eca73-e89f-4293-ad7c-abf7c0e5178b",
|
92 | 92 | "metadata": {
|
93 | 93 | "tags": []
|
|
99 | 99 | },
|
100 | 100 | {
|
101 | 101 | "cell_type": "code",
|
102 |
| - "execution_count": 123, |
| 102 | + "execution_count": 7, |
103 | 103 | "id": "39289e92-1061-46fe-ac08-935b0a75afa6",
|
104 | 104 | "metadata": {
|
105 | 105 | "tags": []
|
|
111 | 111 | "<module 'rail_ferry_brt_stops' from '/home/jovyan/data-analyses/high_quality_transit_areas/rail_ferry_brt_stops.py'>"
|
112 | 112 | ]
|
113 | 113 | },
|
114 |
| - "execution_count": 123, |
| 114 | + "execution_count": 7, |
115 | 115 | "metadata": {},
|
116 | 116 | "output_type": "execute_result"
|
117 | 117 | }
|
|
1795 | 1795 | },
|
1796 | 1796 | {
|
1797 | 1797 | "cell_type": "code",
|
1798 |
| - "execution_count": 6, |
| 1798 | + "execution_count": 8, |
1799 | 1799 | "id": "f5082974-29bc-429a-9288-d2251e8b07c4",
|
1800 | 1800 | "metadata": {
|
1801 | 1801 | "tags": []
|
|
1805 | 1805 | "path = f'{GCS_FILE_PATH}hqta_areas.parquet'"
|
1806 | 1806 | ]
|
1807 | 1807 | },
|
| 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 | + }, |
1808 | 1941 | {
|
1809 | 1942 | "cell_type": "code",
|
1810 | 1943 | "execution_count": 9,
|
|
1814 | 1947 | },
|
1815 | 1948 | "outputs": [],
|
1816 | 1949 | "source": [
|
1817 |
| - "# gpd.read_parquet(path).query('hqta_type == \"major_stop_ferry\"').explore()" |
| 1950 | + "# gdf.query('hqta_type == \"major_stop_ferry\"').explore()" |
1818 | 1951 | ]
|
1819 | 1952 | }
|
1820 | 1953 | ],
|
|
0 commit comments