diff --git a/ca_transit_speed_maps/01_new_speedmaps.ipynb b/ca_transit_speed_maps/01_new_speedmaps.ipynb index dd18c87f5..a19e03f14 100644 --- a/ca_transit_speed_maps/01_new_speedmaps.ipynb +++ b/ca_transit_speed_maps/01_new_speedmaps.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 70, "id": "46898b5c-b5cc-4096-ab68-8c3e42fab870", "metadata": {}, "outputs": [], @@ -27,7 +27,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 71, "id": "cf3d8814-6f22-4a22-8b03-429ebb63a397", "metadata": {}, "outputs": [], @@ -37,7 +37,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 72, "id": "9f15ed6a-5ab7-4f57-9695-3f762781b74c", "metadata": { "tags": [ @@ -52,7 +52,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 73, "id": "a639fd84-29ca-4678-b568-2b1022701e14", "metadata": {}, "outputs": [], @@ -65,7 +65,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 74, "id": "eea40f4b-c378-4b70-a80b-bbe79f8441bf", "metadata": { "tags": [] @@ -78,7 +78,7 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": 75, "id": "c54b78fd-de92-45d9-b54d-49c5b88945c7", "metadata": {}, "outputs": [ @@ -140,7 +140,7 @@ "42 0666caf3ec1ecc96b74f4477ee4bc939 speedmap_segs_available " ] }, - "execution_count": 39, + "execution_count": 75, "metadata": {}, "output_type": "execute_result" } @@ -151,7 +151,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": 76, "id": "1b9762c8-0235-4d8f-b7a4-20a3213eb45e", "metadata": {}, "outputs": [], @@ -161,7 +161,7 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": 77, "id": "9302c0ad-1201-4c5a-8267-ec52719cf777", "metadata": {}, "outputs": [], @@ -171,7 +171,7 @@ }, { "cell_type": "code", - "execution_count": 42, + "execution_count": 78, "id": "19dbeff0-faf6-43e3-9edf-6e68dfeceeac", "metadata": {}, "outputs": [], @@ -181,7 +181,7 @@ }, { "cell_type": "code", - "execution_count": 43, + "execution_count": 79, "id": "9f3c4c93-a5f5-40d7-9315-63e4fecbd738", "metadata": {}, "outputs": [], @@ -191,7 +191,7 @@ }, { "cell_type": "code", - "execution_count": 69, + "execution_count": 80, "id": "e35e835e-9041-4735-917b-2517532e6166", "metadata": {}, "outputs": [ @@ -220,14 +220,13 @@ "
3 rows × 21 columns
\n", + "3 rows × 22 columns
\n", "" ], "text/plain": [ " schedule_gtfs_dataset_key shape_array_key \\\n", - "9729 0666caf3ec1ecc96b74f4477ee4bc939 1d801329ec1c7b1da3460ede3c0fe8bc \n", - "9730 0666caf3ec1ecc96b74f4477ee4bc939 1d801329ec1c7b1da3460ede3c0fe8bc \n", - "9731 0666caf3ec1ecc96b74f4477ee4bc939 1d801329ec1c7b1da3460ede3c0fe8bc \n", + "5265 0666caf3ec1ecc96b74f4477ee4bc939 1d801329ec1c7b1da3460ede3c0fe8bc \n", + "5266 0666caf3ec1ecc96b74f4477ee4bc939 1d801329ec1c7b1da3460ede3c0fe8bc \n", + "5267 0666caf3ec1ecc96b74f4477ee4bc939 1d801329ec1c7b1da3460ede3c0fe8bc \n", "\n", - " shape_id route_id route_short_name stop_pair \\\n", - "9729 1200106_JUNE24 120-13183 120 16644__14345 \n", - "9730 1200106_JUNE24 120-13183 120 14345__14346 \n", - "9731 1200106_JUNE24 120-13183 120 14346__14344 \n", + " shape_id route_id direction_id stop_pair \\\n", + "5265 1200106_JUNE24 120-13183 1.0 16644__14345 \n", + "5266 1200106_JUNE24 120-13183 1.0 14345__14346 \n", + "5267 1200106_JUNE24 120-13183 1.0 14346__14344 \n", "\n", " stop_pair_name segment_id \\\n", - "9729 Whittwood Center__Santa Gertrudes / Starbuck 16644-14345-1 \n", - "9730 Santa Gertrudes / Starbuck__Santa Gertrudes / ... 14345-14346-1 \n", - "9731 Santa Gertrudes / Yermo__Santa Gertrudes / Lef... 14346-14344-1 \n", + "5265 Whittwood Center__Santa Gertrudes / Starbuck 16644-14345-1 \n", + "5266 Santa Gertrudes / Starbuck__Santa Gertrudes / ... 14345-14346-1 \n", + "5267 Santa Gertrudes / Yermo__Santa Gertrudes / Lef... 14346-14344-1 \n", "\n", - " time_of_day p50_mph ... p20_mph p80_mph name \\\n", - "9729 AM Peak 14.49 ... 13.00 16.38 LA Metro Bus Schedule \n", - "9730 AM Peak 26.67 ... 22.58 28.96 LA Metro Bus Schedule \n", - "9731 AM Peak 11.10 ... 7.31 16.04 LA Metro Bus Schedule \n", + " time_of_day p50_mph ... p80_mph name \\\n", + "5265 AM Peak 14.49 ... 16.38 LA Metro Bus Schedule \n", + "5266 AM Peak 26.67 ... 28.96 LA Metro Bus Schedule \n", + "5267 AM Peak 11.10 ... 16.04 LA Metro Bus Schedule \n", "\n", - " caltrans_district organization_source_record_id \\\n", - "9729 07 - Los Angeles recPnGkwdpnr8jmHB \n", - "9730 07 - Los Angeles recPnGkwdpnr8jmHB \n", - "9731 07 - Los Angeles recPnGkwdpnr8jmHB \n", + " caltrans_district organization_source_record_id \\\n", + "5265 07 - Los Angeles recPnGkwdpnr8jmHB \n", + "5266 07 - Los Angeles recPnGkwdpnr8jmHB \n", + "5267 07 - Los Angeles recPnGkwdpnr8jmHB \n", "\n", " organization_name \\\n", - "9729 Los Angeles County Metropolitan Transportation... \n", - "9730 Los Angeles County Metropolitan Transportation... \n", - "9731 Los Angeles County Metropolitan Transportation... \n", + "5265 Los Angeles County Metropolitan Transportation... \n", + "5266 Los Angeles County Metropolitan Transportation... \n", + "5267 Los Angeles County Metropolitan Transportation... \n", "\n", " base64_url \\\n", - "9729 aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... \n", - "9730 aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... \n", - "9731 aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... \n", + "5265 aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... \n", + "5266 aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... \n", + "5267 aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... \n", "\n", " geometry n_trips_sch \\\n", - "9729 LINESTRING (-117.99579 33.94440, -117.99579 33... 4 \n", - "9730 LINESTRING (-117.99307 33.93974, -117.99307 33... 4 \n", - "9731 LINESTRING (-117.99308 33.93630, -117.99308 33... 4 \n", + "5265 LINESTRING (-117.99579 33.94440, -117.99579 33... 4 \n", + "5266 LINESTRING (-117.99307 33.93974, -117.99307 33... 4 \n", + "5267 LINESTRING (-117.99308 33.93630, -117.99308 33... 4 \n", "\n", - " trips_hr_sch \n", - "9729 1.333333 \n", - "9730 1.333333 \n", - "9731 1.333333 \n", + " trips_hr_sch route_short_name \n", + "5265 1.333333 120 \n", + "5266 1.333333 120 \n", + "5267 1.333333 120 \n", "\n", - "[3 rows x 21 columns]" + "[3 rows x 22 columns]" ] }, - "execution_count": 69, + "execution_count": 80, "metadata": {}, "output_type": "execute_result" } @@ -377,7 +377,7 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": 81, "id": "f87584fb-f37d-4869-ba5d-af70a5a0e0e3", "metadata": {}, "outputs": [], @@ -387,7 +387,7 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": 82, "id": "edc84eda-ce2b-481f-ac78-6b7209cb25f4", "metadata": {}, "outputs": [], @@ -407,7 +407,7 @@ }, { "cell_type": "code", - "execution_count": 47, + "execution_count": null, "id": "6af2c7fd-b769-4fbf-bbcf-75080972cc67", "metadata": {}, "outputs": [], @@ -417,7 +417,7 @@ }, { "cell_type": "code", - "execution_count": 48, + "execution_count": null, "id": "cedc030e-8d19-4a0b-b3a5-5a3d6c0dce23", "metadata": {}, "outputs": [], @@ -428,180 +428,20 @@ }, { "cell_type": "code", - "execution_count": 49, + "execution_count": null, "id": "87c7db4f-3da9-4ba4-915b-88432a841b39", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " | schedule_gtfs_dataset_key | \n", - "shape_array_key | \n", - "shape_id | \n", - "route_id | \n", - "route_short_name | \n", - "stop_pair | \n", - "stop_pair_name | \n", - "segment_id | \n", - "time_of_day | \n", - "p50_mph | \n", - "... | \n", - "p20_mph | \n", - "p80_mph | \n", - "name | \n", - "caltrans_district | \n", - "organization_source_record_id | \n", - "organization_name | \n", - "base64_url | \n", - "geometry | \n", - "n_trips_sch | \n", - "trips_hr_sch | \n", - "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34253 | \n", - "0666caf3ec1ecc96b74f4477ee4bc939 | \n", - "4901c1a3b0efda4363bafac83036f8af | \n", - "1110423_JUNE24 | \n", - "111-13183 | \n", - "111 | \n", - "12569__14726 | \n", - "Studebaker / Borson__Studebaker / Imperial | \n", - "12569-14726-1 | \n", - "AM Peak | \n", - "8.59 | \n", - "... | \n", - "8.59 | \n", - "8.59 | \n", - "LA Metro Bus Schedule | \n", - "07 - Los Angeles | \n", - "recPnGkwdpnr8jmHB | \n", - "Los Angeles County Metropolitan Transportation... | \n", - "aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... | \n", - "POLYGON ((175823.879 -453844.437, 175808.618 -... | \n", - "1 | \n", - "0.333333 | \n", - "
34254 | \n", - "0666caf3ec1ecc96b74f4477ee4bc939 | \n", - "4901c1a3b0efda4363bafac83036f8af | \n", - "1110423_JUNE24 | \n", - "111-13183 | \n", - "111 | \n", - "14726__14724 | \n", - "Studebaker / Imperial__Studebaker / Firestone | \n", - "14726-14724-1 | \n", - "AM Peak | \n", - "7.14 | \n", - "... | \n", - "7.14 | \n", - "7.14 | \n", - "LA Metro Bus Schedule | \n", - "07 - Los Angeles | \n", - "recPnGkwdpnr8jmHB | \n", - "Los Angeles County Metropolitan Transportation... | \n", - "aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... | \n", - "POLYGON ((175820.029 -453597.893, 175804.674 -... | \n", - "1 | \n", - "0.333333 | \n", - "
2 rows × 21 columns
\n", - "\n", - " | schedule_gtfs_dataset_key | \n", - "route_id | \n", - "route_short_name | \n", - "stop_pair | \n", - "stop_pair_name | \n", - "segment_id | \n", - "time_period | \n", - "p50_mph | \n", - "n_trips | \n", - "p20_mph | \n", - "p80_mph | \n", - "name | \n", - "caltrans_district | \n", - "organization_source_record_id | \n", - "organization_name | \n", - "base64_url | \n", - "geometry | \n", - "
---|