From ef69f13c07bab65530888b70b9888608792427a9 Mon Sep 17 00:00:00 2001 From: amandaha8 Date: Wed, 27 Nov 2024 19:13:04 +0000 Subject: [PATCH] rm duplicate organization names w/o erasing truly unique feeds --- gtfs_digest/42_explore_ct_district.ipynb | 4959 +++++++---------- gtfs_digest/district_report.ipynb | 167 +- ..._district_report__district_01-eureka.ipynb | 4 +- ...district_report__district_02-redding.ipynb | 4 +- ...trict_report__district_03-marysville.ipynb | 4 +- ...district_report__district_04-oakland.ipynb | 4 +- ..._report__district_05-san-luis-obispo.ipynb | 4 +- ..._district_report__district_06-fresno.ipynb | 4 +- ...rict_report__district_07-los-angeles.ipynb | 4 +- ...t_report__district_08-san-bernardino.ipynb | 4 +- ..._district_report__district_09-bishop.ipynb | 4 +- ...istrict_report__district_10-stockton.ipynb | 4 +- ...strict_report__district_11-san-diego.ipynb | 4 +- ..._district_report__district_12-irvine.ipynb | 4 +- 14 files changed, 2353 insertions(+), 2821 deletions(-) diff --git a/gtfs_digest/42_explore_ct_district.ipynb b/gtfs_digest/42_explore_ct_district.ipynb index af6e32c4d..a15d091bf 100644 --- a/gtfs_digest/42_explore_ct_district.ipynb +++ b/gtfs_digest/42_explore_ct_district.ipynb @@ -55,6 +55,16 @@ { "cell_type": "code", "execution_count": 4, + "id": "8d18e2d6-86a8-4471-a9fc-120613c3476e", + "metadata": {}, + "outputs": [], + "source": [ + "analysis_date = \"2024-11-13\"" + ] + }, + { + "cell_type": "code", + "execution_count": 5, "id": "435d1028-222a-4c55-99ca-cb19972ce39b", "metadata": {}, "outputs": [], @@ -74,35 +84,28 @@ }, { "cell_type": "code", - "execution_count": 5, - "id": "2b4f113c-c110-4b5d-a0b7-3d992aa6b4e9", + "execution_count": 6, + "id": "6f39ef87-f413-4a0b-af42-d05028fec997", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "array(['2024-11-13T00:00:00.000000000', '2024-10-16T00:00:00.000000000',\n", - " '2024-09-18T00:00:00.000000000', '2024-07-17T00:00:00.000000000',\n", - " '2024-06-12T00:00:00.000000000', '2024-05-22T00:00:00.000000000',\n", - " '2024-04-17T00:00:00.000000000', '2024-03-13T00:00:00.000000000',\n", - " '2024-02-14T00:00:00.000000000', '2023-12-13T00:00:00.000000000',\n", - " '2023-11-15T00:00:00.000000000', '2023-08-15T00:00:00.000000000',\n", - " '2023-07-12T00:00:00.000000000', '2023-03-15T00:00:00.000000000'],\n", - " dtype='datetime64[ns]')" + "'digest/operator_profiles'" ] }, - "execution_count": 5, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "operator_df.service_date.unique()" + "OPERATOR_FILE" ] }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 7, "id": "9ae9c383-a8ab-4916-a524-d108f927ee2e", "metadata": {}, "outputs": [ @@ -123,7 +126,7 @@ " dtype='object')" ] }, - "execution_count": 6, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -134,7 +137,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "id": "bd29fe28-0b63-490b-ae1c-6e0a64ca3a37", "metadata": {}, "outputs": [ @@ -144,7 +147,7 @@ "173" ] }, - "execution_count": 7, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -155,7 +158,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 9, "id": "ac64c237-c4a6-44b4-850e-f6e16def495f", "metadata": {}, "outputs": [ @@ -165,7 +168,7 @@ "172" ] }, - "execution_count": 20, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -176,7 +179,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 10, "id": "8a28769c-8b5a-49c7-95d0-c4c6a5cf350c", "metadata": {}, "outputs": [ @@ -186,7 +189,7 @@ "157" ] }, - "execution_count": 21, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -195,10 +198,299 @@ "operator_df.organization_name.nunique()" ] }, + { + "cell_type": "markdown", + "id": "60f3035f-8d89-4d4a-992c-dd3b51a46ca6", + "metadata": {}, + "source": [ + "### View two names to one org examples: 15 of these cases.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "449abea4-a64b-494c-99a9-7b52cdcfd565", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_agg = (\n", + " operator_df.groupby([\"caltrans_district\", \"organization_name\"])\n", + " .agg({\"name\": \"nunique\"})\n", + " .reset_index()\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "881712a6-fcd0-41b1-92db-32f663abe406", + "metadata": {}, + "outputs": [], + "source": [ + "# Filter for orgs with more than two names\n", + "orgs_agg2 = orgs_agg.loc[orgs_agg.name > 1]" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "aa2de21d-b237-4687-88c5-af8208d1875d", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "15" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(orgs_agg2)" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "072fc9d6-85b2-4421-ab04-a63a16747d1a", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names = list(orgs_agg2.organization_name.unique())" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "f5e558e3-b3bf-4874-a021-37910d6dcafe", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Index(['schedule_gtfs_dataset_key', 'vp_per_min_agency',\n", + " 'spatial_accuracy_agency', 'service_date', 'operator_n_routes',\n", + " 'operator_n_trips', 'operator_n_shapes', 'operator_n_stops',\n", + " 'operator_n_arrivals', 'operator_route_length_miles',\n", + " 'operator_arrivals_per_stop', 'n_downtown_local_routes',\n", + " 'n_local_routes', 'n_coverage_routes', 'n_rapid_routes',\n", + " 'n_express_routes', 'n_rail_routes', 'name',\n", + " 'organization_source_record_id', 'organization_name',\n", + " 'caltrans_district', 'counties_served', 'service_area_sq_miles',\n", + " 'hq_city', 'uza_name', 'service_area_pop', 'organization_type',\n", + " 'primary_uza', 'reporter_type'],\n", + " dtype='object')" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "operator_df.columns" + ] + }, + { + "cell_type": "markdown", + "id": "f17502cb-0d12-4054-a9b9-ecb32fe09301", + "metadata": {}, + "source": [ + "### Filter out any orgs with 2+ names from the main df" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "0adee967-a1ae-4833-91c9-e79a141899a5", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "list" + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "type(orgs_with_2_names)" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "f6acac80-6087-4eea-996b-e4dcb20a01d3", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['Redwood Coast Transit Authority',\n", + " 'City of Roseville',\n", + " 'Tahoe Transportation District',\n", + " 'Mission Bay Transportation Management Agency',\n", + " 'Presidio Trust',\n", + " 'City of San Luis Obispo',\n", + " 'City of Downey',\n", + " 'City of Lawndale',\n", + " 'Los Angeles County Metropolitan Transportation Authority',\n", + " 'Basin Transit',\n", + " 'City of Beaumont',\n", + " 'Mountain Area Regional Transit Authority',\n", + " 'Palo Verde Valley Transit Agency',\n", + " 'Victor Valley Transit Authority',\n", + " 'Transit Joint Powers Authority for Merced County']" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "orgs_with_2_names" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "286c050f-19c7-4d82-99ba-022688a2a6cf", + "metadata": {}, + "outputs": [], + "source": [ + "operator_df2 = operator_df.loc[\n", + " ~operator_df.organization_name.isin(orgs_with_2_names)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "markdown", + "id": "7ad5f456-985f-4a7b-b5c9-709c40badd85", + "metadata": {}, + "source": [ + "### Filter out any names that are \"out of date\" for organizations with more than one name." + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "8a05ff43-054e-45ed-9af4-2ec03f43b19f", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df = operator_df.loc[\n", + " operator_df.organization_name.isin(orgs_with_2_names)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "3fd4bdc9-5214-485a-88ec-80260a96de79", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(30, 29)" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "orgs_with_2_names_df.shape" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "id": "99d7e601-c6d6-449d-82f6-f8611fe35321", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "15" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "orgs_with_2_names_df.organization_name.nunique()" + ] + }, { "cell_type": "code", "execution_count": 22, - "id": "d5115797-db04-49ae-841a-4c573349dea5", + "id": "a4db9799-c6e4-48a5-ba89-9f0681983fa0", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df2 = orgs_with_2_names_df.sort_values(\n", + " by=[\"organization_name\", \"service_date\"], ascending=[True, False]\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "id": "f09b53ba-50ae-439b-a0f0-3509501ebea8", + "metadata": {}, + "outputs": [], + "source": [ + "comparison_date = orgs_with_2_names_df2[\"service_date\"].max() - pd.DateOffset(months=3)" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "id": "deaa455f-7dc6-45df-b9e1-7febc02f496b", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Timestamp('2024-08-13 00:00:00')" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "comparison_date" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "id": "6e7832b0-1cdd-42f7-a306-6d13dba399f3", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df3 = orgs_with_2_names_df2[\n", + " orgs_with_2_names_df2[\"service_date\"] >= comparison_date\n", + "]" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "id": "f923d526-eea7-4e6f-8534-4e1252265d2d", "metadata": { "scrolled": true, "tags": [] @@ -225,1794 +517,1112 @@ " \n", " \n", " \n", - " name\n", " organization_name\n", - " caltrans_district\n", + " name\n", " service_date\n", " \n", " \n", " \n", " \n", " 0\n", - " Alhambra Schedule\n", - " City of Alhambra\n", - " 07 - Los Angeles\n", + " Basin Transit\n", + " Basin Transit GMV Schedule\n", " 2024-11-13\n", " \n", " \n", - " 1\n", - " Amador Schedule\n", - " Amador Regional Transit System\n", - " 10 - Stockton\n", + " 12\n", + " Basin Transit\n", + " Morongo Basin Schedule\n", " 2024-11-13\n", " \n", " \n", - " 2\n", - " Antelope Valley Transit Authority Schedule\n", - " Antelope Valley Transit Authority\n", - " 07 - Los Angeles\n", + " 3\n", + " City of Beaumont\n", + " Beaumont Transit Schedule\n", " 2024-11-13\n", " \n", " \n", - " 3\n", - " Arvin Schedule\n", - " City of Arvin\n", - " 06 - Fresno\n", - " 2024-11-13\n", + " 24\n", + " City of Beaumont\n", + " Beaumont Pass Schedule\n", + " 2024-10-16\n", " \n", " \n", - " 4\n", - " Auburn Schedule\n", - " City of Auburn\n", - " 03 - Marysville\n", - " 2024-11-13\n", - " \n", - " \n", - " 5\n", - " B-Line Schedule\n", - " Butte County Association of Governments\n", - " 03 - Marysville\n", - " 2024-11-13\n", - " \n", - " \n", - " 6\n", - " Banning Pass Schedule\n", - " City of Banning\n", - " 08 - San Bernardino\n", - " 2024-11-13\n", - " \n", - " \n", - " 7\n", - " Basin Transit GMV Schedule\n", - " Basin Transit\n", - " 08 - San Bernardino\n", - " 2024-11-13\n", + " 26\n", + " City of Downey\n", + " DowneyLINK GMV Schedule\n", + " 2024-09-18\n", " \n", " \n", " 8\n", - " Bay Area 511 AC Transit Schedule\n", - " Alameda-Contra Costa Transit District\n", - " 04 - Oakland\n", + " City of Lawndale\n", + " Lawndale Beat GMV Schedule\n", " 2024-11-13\n", " \n", " \n", " 9\n", - " Bay Area 511 BART Schedule\n", - " San Francisco Bay Area Rapid Transit District\n", - " 04 - Oakland\n", + " City of Lawndale\n", + " Lawndale Schedule\n", " 2024-11-13\n", " \n", " \n", - " 10\n", - " Bay Area 511 Capitol Corridor Schedule\n", - " Capitol Corridor Joint Powers Authority\n", - " 04 - Oakland\n", + " 16\n", + " City of Roseville\n", + " Roseville Schedule\n", " 2024-11-13\n", " \n", " \n", - " 11\n", - " Bay Area 511 Commute.org Schedule\n", - " City of Menlo Park\n", - " 04 - Oakland\n", + " 17\n", + " City of Roseville\n", + " Roseville Transit GMV Schedule\n", " 2024-11-13\n", " \n", " \n", - " 12\n", - " Bay Area 511 County Connection Schedule\n", - " Central Contra Costa Transit Authority\n", - " 04 - Oakland\n", + " 18\n", + " City of San Luis Obispo\n", + " SLO Peak Transit Schedule\n", " 2024-11-13\n", " \n", " \n", - " 13\n", - " Bay Area 511 Fairfield and Suisun Transit Schedule\n", - " City of Fairfield\n", - " 04 - Oakland\n", + " 19\n", + " City of San Luis Obispo\n", + " SLO Schedule\n", " 2024-11-13\n", " \n", " \n", - " 14\n", - " Bay Area 511 MVGO Schedule\n", - " Mountain View Transportation Management Association\n", - " 04 - Oakland\n", + " 6\n", + " Los Angeles County Metropolitan Transportation Authority\n", + " LA Metro Bus Schedule\n", " 2024-11-13\n", " \n", " \n", - " 15\n", - " Bay Area 511 Marin Schedule\n", - " Marin County Transit District\n", - " 04 - Oakland\n", + " 7\n", + " Los Angeles County Metropolitan Transportation Authority\n", + " LA Metro Rail Schedule\n", " 2024-11-13\n", " \n", " \n", - " 16\n", - " Bay Area 511 Mission Bay Schedule\n", + " 1\n", " Mission Bay Transportation Management Agency\n", - " 04 - Oakland\n", + " Bay Area 511 Mission Bay Schedule\n", " 2024-11-13\n", " \n", " \n", - " 17\n", - " Bay Area 511 Mountain View Community Shuttle Schedule\n", - " City of Mountain View\n", - " 04 - Oakland\n", + " 13\n", + " Mountain Area Regional Transit Authority\n", + " Mountain Transit GMV Schedule\n", " 2024-11-13\n", " \n", " \n", - " 18\n", - " Bay Area 511 Muni Schedule\n", - " City and County of San Francisco\n", - " 04 - Oakland\n", + " 14\n", + " Mountain Area Regional Transit Authority\n", + " Mountain Transit Schedule\n", " 2024-11-13\n", " \n", " \n", - " 19\n", - " Bay Area 511 Petaluma Schedule\n", - " City of Petaluma\n", - " 04 - Oakland\n", + " 4\n", + " Palo Verde Valley Transit Agency\n", + " Desert Roadrunner GMV Schedule\n", " 2024-11-13\n", " \n", " \n", - " 20\n", - " Bay Area 511 PresidiGo Schedule\n", - " Presidio Trust\n", - " 04 - Oakland\n", + " 5\n", + " Palo Verde Valley Transit Agency\n", + " Desert Roadrunner Schedule\n", " 2024-11-13\n", " \n", " \n", - " 21\n", - " Bay Area 511 Rio Vista Delta Breeze Schedule\n", - " City of Rio Vista\n", - " 04 - Oakland\n", + " 2\n", + " Presidio Trust\n", + " Bay Area 511 PresidiGo Schedule\n", " 2024-11-13\n", " \n", " \n", - " 22\n", - " Bay Area 511 SamTrans Schedule\n", - " San Mateo County Transit District\n", - " 04 - Oakland\n", - " 2024-11-13\n", + " 25\n", + " Presidio Trust\n", + " PresidiGo Schedule\n", + " 2024-10-16\n", " \n", " \n", - " 23\n", - " Bay Area 511 Santa Clara Transit Schedule\n", - " Santa Clara Valley Transportation Authority\n", - " 04 - Oakland\n", + " 15\n", + " Redwood Coast Transit Authority\n", + " Redwood Coast Schedule\n", " 2024-11-13\n", " \n", " \n", - " 24\n", - " Bay Area 511 Santa Rosa CityBus Schedule\n", - " City of Santa Rosa\n", - " 04 - Oakland\n", + " 20\n", + " Tahoe Transportation District\n", + " Tahoe Transportation District GMV Schedule\n", " 2024-11-13\n", " \n", " \n", - " 25\n", - " Bay Area 511 SolTrans Schedule\n", - " Solano County Transit\n", - " 04 - Oakland\n", + " 21\n", + " Tahoe Transportation District\n", + " Tahoe Transportation District Schedule\n", " 2024-11-13\n", " \n", " \n", - " 26\n", - " Bay Area 511 Sonoma County Transit Schedule\n", - " Sonoma County\n", - " 04 - Oakland\n", + " 10\n", + " Transit Joint Powers Authority for Merced County\n", + " Merced GMV Schedule\n", " 2024-11-13\n", " \n", " \n", - " 27\n", - " Bay Area 511 South San Francisco Shuttle Schedule\n", - " City of South San Francisco\n", - " 04 - Oakland\n", + " 11\n", + " Transit Joint Powers Authority for Merced County\n", + " Merced Schedule\n", " 2024-11-13\n", " \n", " \n", - " 28\n", - " Bay Area 511 Tri Delta Schedule\n", - " Eastern Contra Costa Transit Authority\n", - " 04 - Oakland\n", + " 22\n", + " Victor Valley Transit Authority\n", + " Victor Valley GMV Schedule\n", " 2024-11-13\n", " \n", " \n", - " 29\n", - " Bay Area 511 Tri-Valley Wheels Schedule\n", - " Livermore-Amador Valley Transit Authority\n", - " 04 - Oakland\n", + " 23\n", + " Victor Valley Transit Authority\n", + " Victor Valley Schedule\n", " 2024-11-13\n", " \n", - " \n", - " 30\n", - " Bay Area 511 Union City Transit Schedule\n", - " City of Union City\n", - " 04 - Oakland\n", - " 2024-11-13\n", + " \n", + "\n", + "" + ], + "text/plain": [ + " organization_name \\\n", + "0 Basin Transit \n", + "12 Basin Transit \n", + "3 City of Beaumont \n", + "24 City of Beaumont \n", + "26 City of Downey \n", + "8 City of Lawndale \n", + "9 City of Lawndale \n", + "16 City of Roseville \n", + "17 City of Roseville \n", + "18 City of San Luis Obispo \n", + "19 City of San Luis Obispo \n", + "6 Los Angeles County Metropolitan Transportation Authority \n", + "7 Los Angeles County Metropolitan Transportation Authority \n", + "1 Mission Bay Transportation Management Agency \n", + "13 Mountain Area Regional Transit Authority \n", + "14 Mountain Area Regional Transit Authority \n", + "4 Palo Verde Valley Transit Agency \n", + "5 Palo Verde Valley Transit Agency \n", + "2 Presidio Trust \n", + "25 Presidio Trust \n", + "15 Redwood Coast Transit Authority \n", + "20 Tahoe Transportation District \n", + "21 Tahoe Transportation District \n", + "10 Transit Joint Powers Authority for Merced County \n", + "11 Transit Joint Powers Authority for Merced County \n", + "22 Victor Valley Transit Authority \n", + "23 Victor Valley Transit Authority \n", + "\n", + " name service_date \n", + "0 Basin Transit GMV Schedule 2024-11-13 \n", + "12 Morongo Basin Schedule 2024-11-13 \n", + "3 Beaumont Transit Schedule 2024-11-13 \n", + "24 Beaumont Pass Schedule 2024-10-16 \n", + "26 DowneyLINK GMV Schedule 2024-09-18 \n", + "8 Lawndale Beat GMV Schedule 2024-11-13 \n", + "9 Lawndale Schedule 2024-11-13 \n", + "16 Roseville Schedule 2024-11-13 \n", + "17 Roseville Transit GMV Schedule 2024-11-13 \n", + "18 SLO Peak Transit Schedule 2024-11-13 \n", + "19 SLO Schedule 2024-11-13 \n", + "6 LA Metro Bus Schedule 2024-11-13 \n", + "7 LA Metro Rail Schedule 2024-11-13 \n", + "1 Bay Area 511 Mission Bay Schedule 2024-11-13 \n", + "13 Mountain Transit GMV Schedule 2024-11-13 \n", + "14 Mountain Transit Schedule 2024-11-13 \n", + "4 Desert Roadrunner GMV Schedule 2024-11-13 \n", + "5 Desert Roadrunner Schedule 2024-11-13 \n", + "2 Bay Area 511 PresidiGo Schedule 2024-11-13 \n", + "25 PresidiGo Schedule 2024-10-16 \n", + "15 Redwood Coast Schedule 2024-11-13 \n", + "20 Tahoe Transportation District GMV Schedule 2024-11-13 \n", + "21 Tahoe Transportation District Schedule 2024-11-13 \n", + "10 Merced GMV Schedule 2024-11-13 \n", + "11 Merced Schedule 2024-11-13 \n", + "22 Victor Valley GMV Schedule 2024-11-13 \n", + "23 Victor Valley Schedule 2024-11-13 " + ] + }, + "execution_count": 26, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "orgs_with_2_names_df3[[\"organization_name\", \"name\", \"service_date\"]]" + ] + }, + { + "cell_type": "markdown", + "id": "7d902532-af1d-44d2-822c-8bfa94d3de8a", + "metadata": {}, + "source": [ + "### Filter out any rows in which `vp_per_min_agency` and `spatial_accuracy_agency` is less than 0 and still has 2+ names " + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "id": "711554bd-1920-4911-8eea-b892a00a7c28", + "metadata": {}, + "outputs": [], + "source": [ + "# Calcualte orgs that still have 2+ names\n", + "orgs_with_2_names = (\n", + " orgs_with_2_names_df3.groupby([\"organization_name\"])\n", + " .agg({\"name\": \"nunique\"})\n", + " .reset_index()\n", + " .rename(columns={\"name\": \"n_names\"})\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "id": "039a22a2-e8cf-4b6c-ac3d-ddc49c1ef217", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + "
organization_namen_names
31Bay Area 511 Vacaville City Coach ScheduleCity of Vacaville04 - Oakland2024-11-130Basin Transit2
32Bay Area 511 Vine Transit ScheduleNapa Valley Transportation Authority04 - Oakland2024-11-131City of Beaumont2
33Bay Area 511 WestCAT ScheduleWestern Contra Costa Transit Authority04 - Oakland2024-11-132City of Downey1
34Beach Cities GMV ScheduleCity of Redondo Beach07 - Los Angeles2024-11-133City of Lawndale2
35Bear ScheduleUniversity of California, Berkeley04 - Oakland2024-11-134City of Roseville2
36Beaumont Transit ScheduleCity of Beaumont08 - San Bernardino2024-11-135City of San Luis Obispo2
37Bellflower Bus ScheduleCity of Bellflower07 - Los Angeles2024-11-136Los Angeles County Metropolitan Transportation Authority2
38Big Blue Bus ScheduleCity of Santa Monica07 - Los Angeles2024-11-137Mission Bay Transportation Management Agency1
39BruinBus ScheduleUniversity of California, Los Angeles07 - Los Angeles2024-11-138Mountain Area Regional Transit Authority2
40Burbank ScheduleCity of Burbank07 - Los Angeles2024-11-139Palo Verde Valley Transit Agency2
41Calabasas ScheduleCity of Calabasas07 - Los Angeles2024-11-1310Presidio Trust2
42Calaveras ScheduleCalaveras Transit Agency10 - Stockton2024-11-1311Redwood Coast Transit Authority1
43Cerritos on Wheels Website ScheduleCity of Cerritos07 - Los Angeles2024-11-1312Tahoe Transportation District2
44Clean Air Express ScheduleSanta Barbara County Association of Governments05 - San Luis Obispo2024-11-1313Transit Joint Powers Authority for Merced County2
45Clovis ScheduleCity of Clovis06 - Fresno2024-11-1314Victor Valley Transit Authority2
46Commerce ScheduleCity of Commerce07 - Los Angeles2024-11-13
47Corona ScheduleCity of Corona08 - San Bernardino2024-11-13
48County Express ScheduleSan Benito County Local Transportation Authority05 - San Luis Obispo2024-11-13
49Culver City ScheduleCity of Culver City07 - Los Angeles2024-11-13
50Delano ScheduleCity of Delano06 - Fresno2024-11-13
51Desert Roadrunner GMV SchedulePalo Verde Valley Transit Agency08 - San Bernardino2024-11-13
52Desert Roadrunner SchedulePalo Verde Valley Transit Agency08 - San Bernardino2024-11-13
53Eastern Sierra ScheduleEastern Sierra Transit Authority09 - Bishop2024-11-13
54El Dorado ScheduleEl Dorado County Transit Authority03 - Marysville2024-11-13
\n", + "
" + ], + "text/plain": [ + " organization_name n_names\n", + "0 Basin Transit 2\n", + "1 City of Beaumont 2\n", + "2 City of Downey 1\n", + "3 City of Lawndale 2\n", + "4 City of Roseville 2\n", + "5 City of San Luis Obispo 2\n", + "6 Los Angeles County Metropolitan Transportation Authority 2\n", + "7 Mission Bay Transportation Management Agency 1\n", + "8 Mountain Area Regional Transit Authority 2\n", + "9 Palo Verde Valley Transit Agency 2\n", + "10 Presidio Trust 2\n", + "11 Redwood Coast Transit Authority 1\n", + "12 Tahoe Transportation District 2\n", + "13 Transit Joint Powers Authority for Merced County 2\n", + "14 Victor Valley Transit Authority 2" + ] + }, + "execution_count": 28, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "orgs_with_2_names" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "id": "106c611e-74a0-46ba-a89d-5e1be4b83e90", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df3 = pd.merge(\n", + " orgs_with_2_names_df3, orgs_with_2_names, on=\"organization_name\", how=\"left\"\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "id": "bae3148e-a5ae-4f4d-b795-595e7fa87fc5", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df4 = orgs_with_2_names_df3[\n", + " (orgs_with_2_names_df3.vp_per_min_agency > 0)\n", + " & (orgs_with_2_names_df3.spatial_accuracy_agency > 0)\n", + " & (orgs_with_2_names_df3.n_names > 1)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "markdown", + "id": "7057e64d-6152-47cb-abd6-62200ecf4bc3", + "metadata": {}, + "source": [ + "#### Filter out any rows that are not equal to the `service_date`" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "id": "b2167b90-7484-476f-b6a7-1baf2648e277", + "metadata": {}, + "outputs": [], + "source": [ + "#analysis_date = rt_dates.DATES.popitem()" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "id": "7c53a48f-e50d-4ebd-b252-7338b4a585fc", + "metadata": {}, + "outputs": [], + "source": [ + "#analysis_date = analysis_date[-1]" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "id": "5c4d6c90-f897-448d-b002-acc36b9341f6", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df5 = orgs_with_2_names_df4.loc[\n", + " orgs_with_2_names_df4.service_date == analysis_date\n", + "]" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "id": "17a39cbd-8054-4287-ae50-58f2d4f3ec0e", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "9" + ] + }, + "execution_count": 34, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "orgs_with_2_names_df5.organization_name.nunique()" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "id": "66c7b99a-958a-41d9-a0ea-93ec01b204a2", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(10, 30)" + ] + }, + "execution_count": 35, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "orgs_with_2_names_df5.shape" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "id": "5c4e174e-a840-4ad1-944b-308bf8eed5f3", + "metadata": { + "tags": [] + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Basin Transit\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + "
0
55El Monte ScheduleCity of El Monte07 - Los Angeles2024-11-13schedule_gtfs_dataset_keya7f5522d7690161fc2be75857d7e2f79
56Elk Grove ScheduleCity of Elk Grove03 - Marysville2024-11-13vp_per_min_agency1.35
57Flixbus ScheduleGreyhound07 - Los Angeles2024-11-13spatial_accuracy_agency90.85
58Foothill ScheduleCity of Duarte07 - Los Angeles2024-11-13service_date2024-11-13 00:00:00
59Fresno County ScheduleFresno County Rural Transit Agency06 - Fresno2024-11-13operator_n_routes7.00
60Fresno ScheduleCity of Fresno06 - Fresno2024-11-13operator_n_trips86.00
61G Trans ScheduleCity of Gardena07 - Los Angeles2024-11-13operator_n_shapes16.00
62GET ScheduleGolden Empire Transit District06 - Fresno2024-11-13operator_n_stops170.00
63Get Around Town Express ScheduleCity of South Gate07 - Los Angeles2024-11-13operator_n_arrivals2471.00
64Glendora ScheduleCity of Glendora07 - Los Angeles2024-11-13operator_route_length_miles184.36
65Glenn ScheduleGlenn County03 - Marysville2024-11-13operator_arrivals_per_stop14.54
66Go West ScheduleCity of West Covina07 - Los Angeles2024-11-13n_downtown_local_routes2.00
67Grapeline ScheduleCity of Lodi10 - Stockton2024-11-13n_local_routes0.00
68Guadalupe Flyer ScheduleCity of Guadalupe05 - San Luis Obispo2024-11-13n_coverage_routes9.00
69Humboldt ScheduleCity of Eureka01 - Eureka2024-11-13n_rapid_routes5.00
70Huntington ScheduleCity of Huntington Park07 - Los Angeles2024-11-13n_express_routes0.00
71Imperial Valley Transit ScheduleImperial County Transportation Commission11 - San Diego2024-11-13n_rail_routes0.00
72Inglewood ScheduleCity of Inglewood07 - Los Angeles2024-11-13nameBasin Transit GMV Schedule
73Kern ScheduleKern County06 - Fresno2024-11-13organization_source_record_idrecniaSbsXcRSLsWe
74Kings ScheduleKings County Area Public Transit Agency06 - Fresno2024-11-13organization_nameBasin Transit
75LA DOT ScheduleCity of Los Angeles07 - Los Angeles2024-11-13caltrans_district08 - San Bernardino
76LA Metro Bus ScheduleLos Angeles County Metropolitan Transportation Authority07 - Los Angeles2024-11-13counties_served0
77LA Metro Rail ScheduleLos Angeles County Metropolitan Transportation Authority07 - Los Angeles2024-11-13service_area_sq_miles0
78LADPW ScheduleLos Angeles County07 - Los Angeles2024-11-13hq_cityJoshua Tree
79LAX FlyAway ScheduleLos Angeles World Airports07 - Los Angeles2024-11-13uza_name0
80La Campana ScheduleCity of Bell07 - Los Angeles2024-11-13service_area_pop0
81La Puente ScheduleCity of La Puente07 - Los Angeles2024-11-13organization_typePublic Agency or Authority of Transit Service
82Laguna Beach ScheduleCity of Laguna Beach12 - Irvine2024-11-13primary_uza0
83Lake ScheduleLake Transit Authority01 - Eureka2024-11-13reporter_typeRural Reporter
84Lassen ScheduleLassen Transit Service Agency02 - Redding2024-11-13n_names2
85Lawndale Beat GMV ScheduleCity of Lawndale07 - Los Angeles2024-11-13
\n", + "
" + ], + "text/plain": [ + " 0\n", + "schedule_gtfs_dataset_key a7f5522d7690161fc2be75857d7e2f79\n", + "vp_per_min_agency 1.35\n", + "spatial_accuracy_agency 90.85\n", + "service_date 2024-11-13 00:00:00\n", + "operator_n_routes 7.00\n", + "operator_n_trips 86.00\n", + "operator_n_shapes 16.00\n", + "operator_n_stops 170.00\n", + "operator_n_arrivals 2471.00\n", + "operator_route_length_miles 184.36\n", + "operator_arrivals_per_stop 14.54\n", + "n_downtown_local_routes 2.00\n", + "n_local_routes 0.00\n", + "n_coverage_routes 9.00\n", + "n_rapid_routes 5.00\n", + "n_express_routes 0.00\n", + "n_rail_routes 0.00\n", + "name Basin Transit GMV Schedule\n", + "organization_source_record_id recniaSbsXcRSLsWe\n", + "organization_name Basin Transit\n", + "caltrans_district 08 - San Bernardino\n", + "counties_served 0\n", + "service_area_sq_miles 0\n", + "hq_city Joshua Tree\n", + "uza_name 0\n", + "service_area_pop 0\n", + "organization_type Public Agency or Authority of Transit Service\n", + "primary_uza 0\n", + "reporter_type Rural Reporter\n", + "n_names 2" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "City of Beaumont\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + "
1
86Lawndale ScheduleCity of Lawndale07 - Los Angeles2024-11-13schedule_gtfs_dataset_key7f6e96ebfc0675bfda4f68874aa1466d
87Long Beach ScheduleLong Beach Transit07 - Los Angeles2024-11-13vp_per_min_agency2.96
88Madera County Connection ScheduleMadera County06 - Fresno2024-11-13spatial_accuracy_agency90.21
89Madera Metro ScheduleCity of Madera06 - Fresno2024-11-13service_date2024-11-13 00:00:00
90Maywood ScheduleCity of Maywood07 - Los Angeles2024-11-13operator_n_routes8.00
91Mendocino ScheduleMendocino Transit Authority01 - Eureka2024-11-13operator_n_trips125.00
92Merced GMV ScheduleTransit Joint Powers Authority for Merced County10 - Stockton2024-11-13operator_n_shapes30.00
93Merced ScheduleTransit Joint Powers Authority for Merced County10 - Stockton2024-11-13operator_n_stops126.00
94Monterey Salinas ScheduleMonterey-Salinas Transit05 - San Luis Obispo2024-11-13operator_n_arrivals1530.00
95Morongo Basin ScheduleBasin Transit08 - San Bernardino2024-11-13operator_route_length_miles126.03
96Mountain Transit GMV ScheduleMountain Area Regional Transit Authority08 - San Bernardino2024-11-13operator_arrivals_per_stop12.14
97Mountain Transit ScheduleMountain Area Regional Transit Authority08 - San Bernardino2024-11-13n_downtown_local_routes0.00
98Needles ScheduleCity of Needles08 - San Bernardino2024-11-13n_local_routes0.00
99Nevada County ScheduleNevada County03 - Marysville2024-11-13n_coverage_routes13.00
100North County ScheduleNorth County Transit District11 - San Diego2024-11-13n_rapid_routes10.00
101Norwalk Avail ScheduleCity of Norwalk07 - Los Angeles2024-11-13n_express_routes2.00
102OCTA ScheduleOrange County Transportation Authority12 - Irvine2024-11-13n_rail_routes0.00
103OmniTrans ScheduleOmniTrans08 - San Bernardino2024-11-13nameBeaumont Transit Schedule
104Palos Verdes PTA SchedulePalos Verdes Peninsula Transit Authority07 - Los Angeles2024-11-13organization_source_record_idreciWrBgYsAIm9eKK
105Pasadena ScheduleCity of Pasadena07 - Los Angeles2024-11-13organization_nameCity of Beaumont
106Placer SchedulePlacer County03 - Marysville2024-11-13caltrans_district08 - San Bernardino
107Plumas SchedulePlumas Transit Systems02 - Redding2024-11-13counties_served0
108Redding ScheduleShasta County02 - Redding2024-11-13service_area_sq_miles0
109Redwood Coast ScheduleRedwood Coast Transit Authority01 - Eureka2024-11-13hq_city0
110Riverside ScheduleRiverside Transit Agency08 - San Bernardino2024-11-13uza_name0
111Roseville ScheduleCity of Roseville03 - Marysville2024-11-13service_area_pop0
112Roseville Transit GMV ScheduleCity of Roseville03 - Marysville2024-11-13organization_type0
113SBMTD ScheduleSanta Barbara Metropolitan Transit District05 - San Luis Obispo2024-11-13primary_uza0
114SLO Peak Transit ScheduleCity of San Luis Obispo05 - San Luis Obispo2024-11-13reporter_type0
115SLO ScheduleCity of San Luis Obispo05 - San Luis Obispo2024-11-13n_names2
116SLORTA ScheduleSan Luis Obispo Regional Transit Authority05 - San Luis Obispo2024-11-13
\n", + "
" + ], + "text/plain": [ + " 1\n", + "schedule_gtfs_dataset_key 7f6e96ebfc0675bfda4f68874aa1466d\n", + "vp_per_min_agency 2.96\n", + "spatial_accuracy_agency 90.21\n", + "service_date 2024-11-13 00:00:00\n", + "operator_n_routes 8.00\n", + "operator_n_trips 125.00\n", + "operator_n_shapes 30.00\n", + "operator_n_stops 126.00\n", + "operator_n_arrivals 1530.00\n", + "operator_route_length_miles 126.03\n", + "operator_arrivals_per_stop 12.14\n", + "n_downtown_local_routes 0.00\n", + "n_local_routes 0.00\n", + "n_coverage_routes 13.00\n", + "n_rapid_routes 10.00\n", + "n_express_routes 2.00\n", + "n_rail_routes 0.00\n", + "name Beaumont Transit Schedule\n", + "organization_source_record_id reciWrBgYsAIm9eKK\n", + "organization_name City of Beaumont\n", + "caltrans_district 08 - San Bernardino\n", + "counties_served 0\n", + "service_area_sq_miles 0\n", + "hq_city 0\n", + "uza_name 0\n", + "service_area_pop 0\n", + "organization_type 0\n", + "primary_uza 0\n", + "reporter_type 0\n", + "n_names 2" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "City of Lawndale\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", "
3
117Sacramento ScheduleCity of Rancho Cordova03 - Marysville2024-11-13schedule_gtfs_dataset_key09a703757d1ed14ca9580b1385e39315
118Sage Stage ScheduleModoc Transportation Agency02 - Redding2024-11-13vp_per_min_agency2.65
119San Diego ScheduleSan Diego Metropolitan Transit System11 - San Diego2024-11-13spatial_accuracy_agency100.00
120San Joaquin ScheduleSan Joaquin Regional Transit District10 - Stockton2024-11-13service_date2024-11-13 00:00:00
121Santa Clarita ScheduleCity of Santa Clarita07 - Los Angeles2024-11-13operator_n_routes2.00
122Santa Cruz ScheduleSanta Cruz Metropolitan Transit District05 - San Luis Obispo2024-11-13operator_n_trips30.00
123Santa Maria ScheduleCity of Santa Maria05 - San Luis Obispo2024-11-13operator_n_shapes2.00
124Santa Ynez Mecatran ScheduleCity of Solvang05 - San Luis Obispo2024-11-13operator_n_stops43.00
125Siskiyou ScheduleSiskiyou County02 - Redding2024-11-13operator_n_arrivals698.00
126South County Transit Link ScheduleSacramento County03 - Marysville2024-11-13operator_route_length_miles17.92
127StanRTA ScheduleStanislaus Regional Transit Authority10 - Stockton2024-11-13operator_arrivals_per_stop16.23
128Stanford ScheduleStanford University04 - Oakland2024-11-13n_downtown_local_routes2.00
129TART, North Lake Tahoe ScheduleNorth Lake Tahoe Express03 - Marysville2024-11-13n_local_routes0.00
130Tahoe Transportation District GMV ScheduleTahoe Transportation District03 - Marysville2024-11-13n_coverage_routes1.00
131Tahoe Transportation District ScheduleTahoe Transportation District03 - Marysville2024-11-13n_rapid_routes0.00
132Tehama ScheduleTehama County02 - Redding2024-11-13n_express_routes1.00
133Torrance ScheduleCity of Torrance07 - Los Angeles2024-11-13n_rail_routes0.00
134Tracy ScheduleCity of Tracy10 - Stockton2024-11-13nameLawndale Beat GMV Schedule
135Trinity ScheduleTrinity County02 - Redding2024-11-13organization_source_record_idrecj8LXdeSurpSRNU
136Turlock ScheduleCity of Turlock10 - Stockton2024-11-13
137Unitrans ScheduleUniversity of California, Davis03 - Marysville2024-11-13
138VCTC GMV ScheduleCity of Ojai07 - Los Angeles2024-11-13
139Victor Valley GMV ScheduleVictor Valley Transit Authority08 - San Bernardino2024-11-13
140Victor Valley ScheduleVictor Valley Transit Authority08 - San Bernardino2024-11-13
141Visalia ScheduleCity of Visalia06 - Fresno2024-11-13
142WeHo ScheduleCity of West Hollywood07 - Los Angeles2024-11-13
143YARTS ScheduleYosemite Area Regional Transportation System10 - Stockton2024-11-13
144Yolobus ScheduleYolo County Transportation District03 - Marysville2024-11-13
145Yuba-Sutter ScheduleYuba-Sutter Transit Authority03 - Marysville2024-11-13
146Yuma ScheduleYuma County Intergovernmental Public Transportation Authority11 - San Diego2024-11-13
147eTrans ScheduleCity of Escalon10 - Stockton2024-11-13
148NoneNone06 - Fresno2024-11-13
149Bay Area 511 Emery Go-Round ScheduleEmeryville Transportation Management Agency04 - Oakland2024-10-16
150Beaumont Pass ScheduleCity of Beaumont08 - San Bernardino2024-10-16
151PresidiGo SchedulePresidio Trust04 - Oakland2024-10-16
152DowneyLINK GMV ScheduleCity of Downey07 - Los Angeles2024-09-18
153Bell Gardens ScheduleCity of Bell Gardens07 - Los Angeles2024-07-17
154Cudahy ScheduleCity of Cudahy07 - Los Angeles2024-07-17
155Anteater Express ScheduleUniversity of California, Irvine12 - Irvine2024-06-12
156Lynwood ScheduleCity of Lynwood07 - Los Angeles2024-06-12
157Manteca ScheduleCity of Manteca10 - Stockton2024-06-12
158UCSC ScheduleUniversity of California, Santa Cruz05 - San Luis Obispo2024-06-12
159El Segundo ScheduleCity of El Segundo07 - Los Angeles2024-05-22
160Redwood Coast SchedulelRedwood Coast Transit Authority01 - Eureka2024-05-22
161Baldwin Park ScheduleCity of Baldwin Park07 - Los Angeles2024-04-17organization_nameCity of Lawndale
162Avalon ScheduleCity of Avaloncaltrans_district07 - Los Angeles2024-03-13
163Bay Area 511 Dumbarton Express ScheduleDumbarton Bridge Regional Operations Consortium04 - Oakland2024-03-13
164Bay Area 511 Golden Gate Transit ScheduleGolden Gate Bridge, Highway and Transportation District04 - Oakland2024-03-13counties_served0
165Rosemead ScheduleCity of Rosemead07 - Los Angeles2024-02-14service_area_sq_miles0
166Arcadia ScheduleCity of Arcadia07 - Los Angeles2023-12-13hq_city0
167DowneyLINK ScheduleCity of Downey07 - Los Angeles2023-12-13uza_name0
168Spirit Bus ScheduleCity of Monterey Park07 - Los Angeles2023-12-13service_area_pop0
169Mission Bay ScheduleMission Bay Transportation Management Agency04 - Oakland2023-11-15organization_type0
170Blossom Express ScheduleCity of Ripon10 - Stockton2023-08-15primary_uza0
171Glendale ScheduleCity of Glendale07 - Los Angeles2023-07-12reporter_type0
172TIME GMV ScheduleTulare County Regional Transit Agency06 - Fresno2023-03-15n_names2
\n", "
" ], "text/plain": [ - " name \\\n", - "0 Alhambra Schedule \n", - "1 Amador Schedule \n", - "2 Antelope Valley Transit Authority Schedule \n", - "3 Arvin Schedule \n", - "4 Auburn Schedule \n", - "5 B-Line Schedule \n", - "6 Banning Pass Schedule \n", - "7 Basin Transit GMV Schedule \n", - "8 Bay Area 511 AC Transit Schedule \n", - "9 Bay Area 511 BART Schedule \n", - "10 Bay Area 511 Capitol Corridor Schedule \n", - "11 Bay Area 511 Commute.org Schedule \n", - "12 Bay Area 511 County Connection Schedule \n", - "13 Bay Area 511 Fairfield and Suisun Transit Schedule \n", - "14 Bay Area 511 MVGO Schedule \n", - "15 Bay Area 511 Marin Schedule \n", - "16 Bay Area 511 Mission Bay Schedule \n", - "17 Bay Area 511 Mountain View Community Shuttle Schedule \n", - "18 Bay Area 511 Muni Schedule \n", - "19 Bay Area 511 Petaluma Schedule \n", - "20 Bay Area 511 PresidiGo Schedule \n", - "21 Bay Area 511 Rio Vista Delta Breeze Schedule \n", - "22 Bay Area 511 SamTrans Schedule \n", - "23 Bay Area 511 Santa Clara Transit Schedule \n", - "24 Bay Area 511 Santa Rosa CityBus Schedule \n", - "25 Bay Area 511 SolTrans Schedule \n", - "26 Bay Area 511 Sonoma County Transit Schedule \n", - "27 Bay Area 511 South San Francisco Shuttle Schedule \n", - "28 Bay Area 511 Tri Delta Schedule \n", - "29 Bay Area 511 Tri-Valley Wheels Schedule \n", - "30 Bay Area 511 Union City Transit Schedule \n", - "31 Bay Area 511 Vacaville City Coach Schedule \n", - "32 Bay Area 511 Vine Transit Schedule \n", - "33 Bay Area 511 WestCAT Schedule \n", - "34 Beach Cities GMV Schedule \n", - "35 Bear Schedule \n", - "36 Beaumont Transit Schedule \n", - "37 Bellflower Bus Schedule \n", - "38 Big Blue Bus Schedule \n", - "39 BruinBus Schedule \n", - "40 Burbank Schedule \n", - "41 Calabasas Schedule \n", - "42 Calaveras Schedule \n", - "43 Cerritos on Wheels Website Schedule \n", - "44 Clean Air Express Schedule \n", - "45 Clovis Schedule \n", - "46 Commerce Schedule \n", - "47 Corona Schedule \n", - "48 County Express Schedule \n", - "49 Culver City Schedule \n", - "50 Delano Schedule \n", - "51 Desert Roadrunner GMV Schedule \n", - "52 Desert Roadrunner Schedule \n", - "53 Eastern Sierra Schedule \n", - "54 El Dorado Schedule \n", - "55 El Monte Schedule \n", - "56 Elk Grove Schedule \n", - "57 Flixbus Schedule \n", - "58 Foothill Schedule \n", - "59 Fresno County Schedule \n", - "60 Fresno Schedule \n", - "61 G Trans Schedule \n", - "62 GET Schedule \n", - "63 Get Around Town Express Schedule \n", - "64 Glendora Schedule \n", - "65 Glenn Schedule \n", - "66 Go West Schedule \n", - "67 Grapeline Schedule \n", - "68 Guadalupe Flyer Schedule \n", - "69 Humboldt Schedule \n", - "70 Huntington Schedule \n", - "71 Imperial Valley Transit Schedule \n", - "72 Inglewood Schedule \n", - "73 Kern Schedule \n", - "74 Kings Schedule \n", - "75 LA DOT Schedule \n", - "76 LA Metro Bus Schedule \n", - "77 LA Metro Rail Schedule \n", - "78 LADPW Schedule \n", - "79 LAX FlyAway Schedule \n", - "80 La Campana Schedule \n", - "81 La Puente Schedule \n", - "82 Laguna Beach Schedule \n", - "83 Lake Schedule \n", - "84 Lassen Schedule \n", - "85 Lawndale Beat GMV Schedule \n", - "86 Lawndale Schedule \n", - "87 Long Beach Schedule \n", - "88 Madera County Connection Schedule \n", - "89 Madera Metro Schedule \n", - "90 Maywood Schedule \n", - "91 Mendocino Schedule \n", - "92 Merced GMV Schedule \n", - "93 Merced Schedule \n", - "94 Monterey Salinas Schedule \n", - "95 Morongo Basin Schedule \n", - "96 Mountain Transit GMV Schedule \n", - "97 Mountain Transit Schedule \n", - "98 Needles Schedule \n", - "99 Nevada County Schedule \n", - "100 North County Schedule \n", - "101 Norwalk Avail Schedule \n", - "102 OCTA Schedule \n", - "103 OmniTrans Schedule \n", - "104 Palos Verdes PTA Schedule \n", - "105 Pasadena Schedule \n", - "106 Placer Schedule \n", - "107 Plumas Schedule \n", - "108 Redding Schedule \n", - "109 Redwood Coast Schedule \n", - "110 Riverside Schedule \n", - "111 Roseville Schedule \n", - "112 Roseville Transit GMV Schedule \n", - "113 SBMTD Schedule \n", - "114 SLO Peak Transit Schedule \n", - "115 SLO Schedule \n", - "116 SLORTA Schedule \n", - "117 Sacramento Schedule \n", - "118 Sage Stage Schedule \n", - "119 San Diego Schedule \n", - "120 San Joaquin Schedule \n", - "121 Santa Clarita Schedule \n", - "122 Santa Cruz Schedule \n", - "123 Santa Maria Schedule \n", - "124 Santa Ynez Mecatran Schedule \n", - "125 Siskiyou Schedule \n", - "126 South County Transit Link Schedule \n", - "127 StanRTA Schedule \n", - "128 Stanford Schedule \n", - "129 TART, North Lake Tahoe Schedule \n", - "130 Tahoe Transportation District GMV Schedule \n", - "131 Tahoe Transportation District Schedule \n", - "132 Tehama Schedule \n", - "133 Torrance Schedule \n", - "134 Tracy Schedule \n", - "135 Trinity Schedule \n", - "136 Turlock Schedule \n", - "137 Unitrans Schedule \n", - "138 VCTC GMV Schedule \n", - "139 Victor Valley GMV Schedule \n", - "140 Victor Valley Schedule \n", - "141 Visalia Schedule \n", - "142 WeHo Schedule \n", - "143 YARTS Schedule \n", - "144 Yolobus Schedule \n", - "145 Yuba-Sutter Schedule \n", - "146 Yuma Schedule \n", - "147 eTrans Schedule \n", - "148 None \n", - "149 Bay Area 511 Emery Go-Round Schedule \n", - "150 Beaumont Pass Schedule \n", - "151 PresidiGo Schedule \n", - "152 DowneyLINK GMV Schedule \n", - "153 Bell Gardens Schedule \n", - "154 Cudahy Schedule \n", - "155 Anteater Express Schedule \n", - "156 Lynwood Schedule \n", - "157 Manteca Schedule \n", - "158 UCSC Schedule \n", - "159 El Segundo Schedule \n", - "160 Redwood Coast Schedulel \n", - "161 Baldwin Park Schedule \n", - "162 Avalon Schedule \n", - "163 Bay Area 511 Dumbarton Express Schedule \n", - "164 Bay Area 511 Golden Gate Transit Schedule \n", - "165 Rosemead Schedule \n", - "166 Arcadia Schedule \n", - "167 DowneyLINK Schedule \n", - "168 Spirit Bus Schedule \n", - "169 Mission Bay Schedule \n", - "170 Blossom Express Schedule \n", - "171 Glendale Schedule \n", - "172 TIME GMV Schedule \n", - "\n", - " organization_name \\\n", - "0 City of Alhambra \n", - "1 Amador Regional Transit System \n", - "2 Antelope Valley Transit Authority \n", - "3 City of Arvin \n", - "4 City of Auburn \n", - "5 Butte County Association of Governments \n", - "6 City of Banning \n", - "7 Basin Transit \n", - "8 Alameda-Contra Costa Transit District \n", - "9 San Francisco Bay Area Rapid Transit District \n", - "10 Capitol Corridor Joint Powers Authority \n", - "11 City of Menlo Park \n", - "12 Central Contra Costa Transit Authority \n", - "13 City of Fairfield \n", - "14 Mountain View Transportation Management Association \n", - "15 Marin County Transit District \n", - "16 Mission Bay Transportation Management Agency \n", - "17 City of Mountain View \n", - "18 City and County of San Francisco \n", - "19 City of Petaluma \n", - "20 Presidio Trust \n", - "21 City of Rio Vista \n", - "22 San Mateo County Transit District \n", - "23 Santa Clara Valley Transportation Authority \n", - "24 City of Santa Rosa \n", - "25 Solano County Transit \n", - "26 Sonoma County \n", - "27 City of South San Francisco \n", - "28 Eastern Contra Costa Transit Authority \n", - "29 Livermore-Amador Valley Transit Authority \n", - "30 City of Union City \n", - "31 City of Vacaville \n", - "32 Napa Valley Transportation Authority \n", - "33 Western Contra Costa Transit Authority \n", - "34 City of Redondo Beach \n", - "35 University of California, Berkeley \n", - "36 City of Beaumont \n", - "37 City of Bellflower \n", - "38 City of Santa Monica \n", - "39 University of California, Los Angeles \n", - "40 City of Burbank \n", - "41 City of Calabasas \n", - "42 Calaveras Transit Agency \n", - "43 City of Cerritos \n", - "44 Santa Barbara County Association of Governments \n", - "45 City of Clovis \n", - "46 City of Commerce \n", - "47 City of Corona \n", - "48 San Benito County Local Transportation Authority \n", - "49 City of Culver City \n", - "50 City of Delano \n", - "51 Palo Verde Valley Transit Agency \n", - "52 Palo Verde Valley Transit Agency \n", - "53 Eastern Sierra Transit Authority \n", - "54 El Dorado County Transit Authority \n", - "55 City of El Monte \n", - "56 City of Elk Grove \n", - "57 Greyhound \n", - "58 City of Duarte \n", - "59 Fresno County Rural Transit Agency \n", - "60 City of Fresno \n", - "61 City of Gardena \n", - "62 Golden Empire Transit District \n", - "63 City of South Gate \n", - "64 City of Glendora \n", - "65 Glenn County \n", - "66 City of West Covina \n", - "67 City of Lodi \n", - "68 City of Guadalupe \n", - "69 City of Eureka \n", - "70 City of Huntington Park \n", - "71 Imperial County Transportation Commission \n", - "72 City of Inglewood \n", - "73 Kern County \n", - "74 Kings County Area Public Transit Agency \n", - "75 City of Los Angeles \n", - "76 Los Angeles County Metropolitan Transportation Authority \n", - "77 Los Angeles County Metropolitan Transportation Authority \n", - "78 Los Angeles County \n", - "79 Los Angeles World Airports \n", - "80 City of Bell \n", - "81 City of La Puente \n", - "82 City of Laguna Beach \n", - "83 Lake Transit Authority \n", - "84 Lassen Transit Service Agency \n", - "85 City of Lawndale \n", - "86 City of Lawndale \n", - "87 Long Beach Transit \n", - "88 Madera County \n", - "89 City of Madera \n", - "90 City of Maywood \n", - "91 Mendocino Transit Authority \n", - "92 Transit Joint Powers Authority for Merced County \n", - "93 Transit Joint Powers Authority for Merced County \n", - "94 Monterey-Salinas Transit \n", - "95 Basin Transit \n", - "96 Mountain Area Regional Transit Authority \n", - "97 Mountain Area Regional Transit Authority \n", - "98 City of Needles \n", - "99 Nevada County \n", - "100 North County Transit District \n", - "101 City of Norwalk \n", - "102 Orange County Transportation Authority \n", - "103 OmniTrans \n", - "104 Palos Verdes Peninsula Transit Authority \n", - "105 City of Pasadena \n", - "106 Placer County \n", - "107 Plumas Transit Systems \n", - "108 Shasta County \n", - "109 Redwood Coast Transit Authority \n", - "110 Riverside Transit Agency \n", - "111 City of Roseville \n", - "112 City of Roseville \n", - "113 Santa Barbara Metropolitan Transit District \n", - "114 City of San Luis Obispo \n", - "115 City of San Luis Obispo \n", - "116 San Luis Obispo Regional Transit Authority \n", - "117 City of Rancho Cordova \n", - "118 Modoc Transportation Agency \n", - "119 San Diego Metropolitan Transit System \n", - "120 San Joaquin Regional Transit District \n", - "121 City of Santa Clarita \n", - "122 Santa Cruz Metropolitan Transit District \n", - "123 City of Santa Maria \n", - "124 City of Solvang \n", - "125 Siskiyou County \n", - "126 Sacramento County \n", - "127 Stanislaus Regional Transit Authority \n", - "128 Stanford University \n", - "129 North Lake Tahoe Express \n", - "130 Tahoe Transportation District \n", - "131 Tahoe Transportation District \n", - "132 Tehama County \n", - "133 City of Torrance \n", - "134 City of Tracy \n", - "135 Trinity County \n", - "136 City of Turlock \n", - "137 University of California, Davis \n", - "138 City of Ojai \n", - "139 Victor Valley Transit Authority \n", - "140 Victor Valley Transit Authority \n", - "141 City of Visalia \n", - "142 City of West Hollywood \n", - "143 Yosemite Area Regional Transportation System \n", - "144 Yolo County Transportation District \n", - "145 Yuba-Sutter Transit Authority \n", - "146 Yuma County Intergovernmental Public Transportation Authority \n", - "147 City of Escalon \n", - "148 None \n", - "149 Emeryville Transportation Management Agency \n", - "150 City of Beaumont \n", - "151 Presidio Trust \n", - "152 City of Downey \n", - "153 City of Bell Gardens \n", - "154 City of Cudahy \n", - "155 University of California, Irvine \n", - "156 City of Lynwood \n", - "157 City of Manteca \n", - "158 University of California, Santa Cruz \n", - "159 City of El Segundo \n", - "160 Redwood Coast Transit Authority \n", - "161 City of Baldwin Park \n", - "162 City of Avalon \n", - "163 Dumbarton Bridge Regional Operations Consortium \n", - "164 Golden Gate Bridge, Highway and Transportation District \n", - "165 City of Rosemead \n", - "166 City of Arcadia \n", - "167 City of Downey \n", - "168 City of Monterey Park \n", - "169 Mission Bay Transportation Management Agency \n", - "170 City of Ripon \n", - "171 City of Glendale \n", - "172 Tulare County Regional Transit Agency \n", - "\n", - " caltrans_district service_date \n", - "0 07 - Los Angeles 2024-11-13 \n", - "1 10 - Stockton 2024-11-13 \n", - "2 07 - Los Angeles 2024-11-13 \n", - "3 06 - Fresno 2024-11-13 \n", - "4 03 - Marysville 2024-11-13 \n", - "5 03 - Marysville 2024-11-13 \n", - "6 08 - San Bernardino 2024-11-13 \n", - "7 08 - San Bernardino 2024-11-13 \n", - "8 04 - Oakland 2024-11-13 \n", - "9 04 - Oakland 2024-11-13 \n", - "10 04 - Oakland 2024-11-13 \n", - "11 04 - Oakland 2024-11-13 \n", - "12 04 - Oakland 2024-11-13 \n", - "13 04 - Oakland 2024-11-13 \n", - "14 04 - Oakland 2024-11-13 \n", - "15 04 - Oakland 2024-11-13 \n", - "16 04 - Oakland 2024-11-13 \n", - "17 04 - Oakland 2024-11-13 \n", - "18 04 - Oakland 2024-11-13 \n", - "19 04 - Oakland 2024-11-13 \n", - "20 04 - Oakland 2024-11-13 \n", - "21 04 - Oakland 2024-11-13 \n", - "22 04 - Oakland 2024-11-13 \n", - "23 04 - Oakland 2024-11-13 \n", - "24 04 - Oakland 2024-11-13 \n", - "25 04 - Oakland 2024-11-13 \n", - "26 04 - Oakland 2024-11-13 \n", - "27 04 - Oakland 2024-11-13 \n", - "28 04 - Oakland 2024-11-13 \n", - "29 04 - Oakland 2024-11-13 \n", - "30 04 - Oakland 2024-11-13 \n", - "31 04 - Oakland 2024-11-13 \n", - "32 04 - Oakland 2024-11-13 \n", - "33 04 - Oakland 2024-11-13 \n", - "34 07 - Los Angeles 2024-11-13 \n", - "35 04 - Oakland 2024-11-13 \n", - "36 08 - San Bernardino 2024-11-13 \n", - "37 07 - Los Angeles 2024-11-13 \n", - "38 07 - Los Angeles 2024-11-13 \n", - "39 07 - Los Angeles 2024-11-13 \n", - "40 07 - Los Angeles 2024-11-13 \n", - "41 07 - Los Angeles 2024-11-13 \n", - "42 10 - Stockton 2024-11-13 \n", - "43 07 - Los Angeles 2024-11-13 \n", - "44 05 - San Luis Obispo 2024-11-13 \n", - "45 06 - Fresno 2024-11-13 \n", - "46 07 - Los Angeles 2024-11-13 \n", - "47 08 - San Bernardino 2024-11-13 \n", - "48 05 - San Luis Obispo 2024-11-13 \n", - "49 07 - Los Angeles 2024-11-13 \n", - "50 06 - Fresno 2024-11-13 \n", - "51 08 - San Bernardino 2024-11-13 \n", - "52 08 - San Bernardino 2024-11-13 \n", - "53 09 - Bishop 2024-11-13 \n", - "54 03 - Marysville 2024-11-13 \n", - "55 07 - Los Angeles 2024-11-13 \n", - "56 03 - Marysville 2024-11-13 \n", - "57 07 - Los Angeles 2024-11-13 \n", - "58 07 - Los Angeles 2024-11-13 \n", - "59 06 - Fresno 2024-11-13 \n", - "60 06 - Fresno 2024-11-13 \n", - "61 07 - Los Angeles 2024-11-13 \n", - "62 06 - Fresno 2024-11-13 \n", - "63 07 - Los Angeles 2024-11-13 \n", - "64 07 - Los Angeles 2024-11-13 \n", - "65 03 - Marysville 2024-11-13 \n", - "66 07 - Los Angeles 2024-11-13 \n", - "67 10 - Stockton 2024-11-13 \n", - "68 05 - San Luis Obispo 2024-11-13 \n", - "69 01 - Eureka 2024-11-13 \n", - "70 07 - Los Angeles 2024-11-13 \n", - "71 11 - San Diego 2024-11-13 \n", - "72 07 - Los Angeles 2024-11-13 \n", - "73 06 - Fresno 2024-11-13 \n", - "74 06 - Fresno 2024-11-13 \n", - "75 07 - Los Angeles 2024-11-13 \n", - "76 07 - Los Angeles 2024-11-13 \n", - "77 07 - Los Angeles 2024-11-13 \n", - "78 07 - Los Angeles 2024-11-13 \n", - "79 07 - Los Angeles 2024-11-13 \n", - "80 07 - Los Angeles 2024-11-13 \n", - "81 07 - Los Angeles 2024-11-13 \n", - "82 12 - Irvine 2024-11-13 \n", - "83 01 - Eureka 2024-11-13 \n", - "84 02 - Redding 2024-11-13 \n", - "85 07 - Los Angeles 2024-11-13 \n", - "86 07 - Los Angeles 2024-11-13 \n", - "87 07 - Los Angeles 2024-11-13 \n", - "88 06 - Fresno 2024-11-13 \n", - "89 06 - Fresno 2024-11-13 \n", - "90 07 - Los Angeles 2024-11-13 \n", - "91 01 - Eureka 2024-11-13 \n", - "92 10 - Stockton 2024-11-13 \n", - "93 10 - Stockton 2024-11-13 \n", - "94 05 - San Luis Obispo 2024-11-13 \n", - "95 08 - San Bernardino 2024-11-13 \n", - "96 08 - San Bernardino 2024-11-13 \n", - "97 08 - San Bernardino 2024-11-13 \n", - "98 08 - San Bernardino 2024-11-13 \n", - "99 03 - Marysville 2024-11-13 \n", - "100 11 - San Diego 2024-11-13 \n", - "101 07 - Los Angeles 2024-11-13 \n", - "102 12 - Irvine 2024-11-13 \n", - "103 08 - San Bernardino 2024-11-13 \n", - "104 07 - Los Angeles 2024-11-13 \n", - "105 07 - Los Angeles 2024-11-13 \n", - "106 03 - Marysville 2024-11-13 \n", - "107 02 - Redding 2024-11-13 \n", - "108 02 - Redding 2024-11-13 \n", - "109 01 - Eureka 2024-11-13 \n", - "110 08 - San Bernardino 2024-11-13 \n", - "111 03 - Marysville 2024-11-13 \n", - "112 03 - Marysville 2024-11-13 \n", - "113 05 - San Luis Obispo 2024-11-13 \n", - "114 05 - San Luis Obispo 2024-11-13 \n", - "115 05 - San Luis Obispo 2024-11-13 \n", - "116 05 - San Luis Obispo 2024-11-13 \n", - "117 03 - Marysville 2024-11-13 \n", - "118 02 - Redding 2024-11-13 \n", - "119 11 - San Diego 2024-11-13 \n", - "120 10 - Stockton 2024-11-13 \n", - "121 07 - Los Angeles 2024-11-13 \n", - "122 05 - San Luis Obispo 2024-11-13 \n", - "123 05 - San Luis Obispo 2024-11-13 \n", - "124 05 - San Luis Obispo 2024-11-13 \n", - "125 02 - Redding 2024-11-13 \n", - "126 03 - Marysville 2024-11-13 \n", - "127 10 - Stockton 2024-11-13 \n", - "128 04 - Oakland 2024-11-13 \n", - "129 03 - Marysville 2024-11-13 \n", - "130 03 - Marysville 2024-11-13 \n", - "131 03 - Marysville 2024-11-13 \n", - "132 02 - Redding 2024-11-13 \n", - "133 07 - Los Angeles 2024-11-13 \n", - "134 10 - Stockton 2024-11-13 \n", - "135 02 - Redding 2024-11-13 \n", - "136 10 - Stockton 2024-11-13 \n", - "137 03 - Marysville 2024-11-13 \n", - "138 07 - Los Angeles 2024-11-13 \n", - "139 08 - San Bernardino 2024-11-13 \n", - "140 08 - San Bernardino 2024-11-13 \n", - "141 06 - Fresno 2024-11-13 \n", - "142 07 - Los Angeles 2024-11-13 \n", - "143 10 - Stockton 2024-11-13 \n", - "144 03 - Marysville 2024-11-13 \n", - "145 03 - Marysville 2024-11-13 \n", - "146 11 - San Diego 2024-11-13 \n", - "147 10 - Stockton 2024-11-13 \n", - "148 06 - Fresno 2024-11-13 \n", - "149 04 - Oakland 2024-10-16 \n", - "150 08 - San Bernardino 2024-10-16 \n", - "151 04 - Oakland 2024-10-16 \n", - "152 07 - Los Angeles 2024-09-18 \n", - "153 07 - Los Angeles 2024-07-17 \n", - "154 07 - Los Angeles 2024-07-17 \n", - "155 12 - Irvine 2024-06-12 \n", - "156 07 - Los Angeles 2024-06-12 \n", - "157 10 - Stockton 2024-06-12 \n", - "158 05 - San Luis Obispo 2024-06-12 \n", - "159 07 - Los Angeles 2024-05-22 \n", - "160 01 - Eureka 2024-05-22 \n", - "161 07 - Los Angeles 2024-04-17 \n", - "162 07 - Los Angeles 2024-03-13 \n", - "163 04 - Oakland 2024-03-13 \n", - "164 04 - Oakland 2024-03-13 \n", - "165 07 - Los Angeles 2024-02-14 \n", - "166 07 - Los Angeles 2023-12-13 \n", - "167 07 - Los Angeles 2023-12-13 \n", - "168 07 - Los Angeles 2023-12-13 \n", - "169 04 - Oakland 2023-11-15 \n", - "170 10 - Stockton 2023-08-15 \n", - "171 07 - Los Angeles 2023-07-12 \n", - "172 06 - Fresno 2023-03-15 " + " 3\n", + "schedule_gtfs_dataset_key 09a703757d1ed14ca9580b1385e39315\n", + "vp_per_min_agency 2.65\n", + "spatial_accuracy_agency 100.00\n", + "service_date 2024-11-13 00:00:00\n", + "operator_n_routes 2.00\n", + "operator_n_trips 30.00\n", + "operator_n_shapes 2.00\n", + "operator_n_stops 43.00\n", + "operator_n_arrivals 698.00\n", + "operator_route_length_miles 17.92\n", + "operator_arrivals_per_stop 16.23\n", + "n_downtown_local_routes 2.00\n", + "n_local_routes 0.00\n", + "n_coverage_routes 1.00\n", + "n_rapid_routes 0.00\n", + "n_express_routes 1.00\n", + "n_rail_routes 0.00\n", + "name Lawndale Beat GMV Schedule\n", + "organization_source_record_id recj8LXdeSurpSRNU\n", + "organization_name City of Lawndale\n", + "caltrans_district 07 - Los Angeles\n", + "counties_served 0\n", + "service_area_sq_miles 0\n", + "hq_city 0\n", + "uza_name 0\n", + "service_area_pop 0\n", + "organization_type 0\n", + "primary_uza 0\n", + "reporter_type 0\n", + "n_names 2" ] }, - "execution_count": 22, "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "operator_df[[\"name\",\"organization_name\", \"caltrans_district\",\"service_date\"]]" - ] - }, - { - "cell_type": "markdown", - "id": "259b9bdc-5a85-4a71-b269-d82294e3ee3b", - "metadata": {}, - "source": [ - "### Mountain Transit GMV and Mountain Transit Schedule actually differ!" - ] - }, - { - "cell_type": "code", - "execution_count": 13, - "id": "689484d8-326c-48fe-b123-5156ea2285ca", - "metadata": { - "scrolled": true, - "tags": [] - }, - "outputs": [], - "source": [ - "mountain_subset = [\"Mountain Transit GMV Schedule\", \"Mountain Transit Schedule\"]" - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "id": "ef15783b-9b27-4a22-810f-f7f91ac56620", - "metadata": { - "scrolled": true, - "tags": [] - }, - "outputs": [ + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "City of San Luis Obispo\n" + ] + }, { "data": { "text/html": [ @@ -2034,260 +1644,189 @@ " \n", " \n", " \n", - " 96\n", - " 97\n", + " 4\n", " \n", " \n", " \n", " \n", " schedule_gtfs_dataset_key\n", - " 0c092a514e4b9ad1427bdacdc67a0091\n", - " 5ca5d244836397b178993c9bdc4dfb00\n", + " f4c3ea214214ee0d96f7646b3e9d69dc\n", " \n", " \n", " vp_per_min_agency\n", - " 0.00\n", - " 0.00\n", + " 1.99\n", " \n", " \n", " spatial_accuracy_agency\n", - " 0.00\n", - " 0.00\n", + " 99.02\n", " \n", " \n", " service_date\n", " 2024-11-13 00:00:00\n", - " 2024-11-13 00:00:00\n", " \n", " \n", " operator_n_routes\n", - " 7.00\n", - " 7.00\n", + " 9.00\n", " \n", " \n", " operator_n_trips\n", - " 154.00\n", - " 172.00\n", + " 147.00\n", " \n", " \n", " operator_n_shapes\n", - " 21.00\n", - " 27.00\n", + " 10.00\n", " \n", " \n", " operator_n_stops\n", - " 134.00\n", - " 127.00\n", + " 157.00\n", " \n", " \n", " operator_n_arrivals\n", - " 3580.00\n", - " 2978.00\n", + " 3916.00\n", " \n", " \n", " operator_route_length_miles\n", - " 153.64\n", - " 145.58\n", + " 84.95\n", " \n", " \n", " operator_arrivals_per_stop\n", - " 26.72\n", - " 23.45\n", + " 24.94\n", " \n", " \n", " n_downtown_local_routes\n", - " 0.00\n", " 1.00\n", " \n", " \n", " n_local_routes\n", - " 0.00\n", - " 0.00\n", + " 2.00\n", " \n", " \n", " n_coverage_routes\n", - " 14.00\n", - " 14.00\n", + " 6.00\n", " \n", " \n", " n_rapid_routes\n", - " 7.00\n", - " 5.00\n", + " 9.00\n", " \n", " \n", " n_express_routes\n", " 0.00\n", - " 0.00\n", " \n", " \n", " n_rail_routes\n", " 0.00\n", - " 0.00\n", " \n", " \n", " name\n", - " Mountain Transit GMV Schedule\n", - " Mountain Transit Schedule\n", + " SLO Peak Transit Schedule\n", " \n", " \n", " organization_source_record_id\n", - " recHbquam1bWEwC3P\n", - " recHbquam1bWEwC3P\n", + " recMM99msxjmc6PPv\n", " \n", " \n", " organization_name\n", - " Mountain Area Regional Transit Authority\n", - " Mountain Area Regional Transit Authority\n", + " City of San Luis Obispo\n", " \n", " \n", " caltrans_district\n", - " 08 - San Bernardino\n", - " 08 - San Bernardino\n", + " 05 - San Luis Obispo\n", " \n", " \n", " counties_served\n", - " 0\n", - " 0\n", + " San Luis Obispo\n", " \n", " \n", " service_area_sq_miles\n", - " 0\n", - " 0\n", + " 22\n", " \n", " \n", " hq_city\n", - " Big Bear Lake\n", - " Big Bear Lake\n", + " San Luis Obispo\n", " \n", " \n", " uza_name\n", - " 0\n", - " 0\n", + " San Luis Obispo, CA\n", " \n", " \n", " service_area_pop\n", - " 0\n", - " 0\n", + " 46997\n", " \n", " \n", " organization_type\n", - " Public Agency or Authority of Transit Service\n", - " Public Agency or Authority of Transit Service\n", + " County or Local Government Unit or Department of Transportation\n", " \n", " \n", " primary_uza\n", " 0\n", - " 0\n", " \n", " \n", " reporter_type\n", - " Rural Reporter\n", - " Rural Reporter\n", + " Full Reporter\n", + " \n", + " \n", + " n_names\n", + " 2\n", " \n", " \n", "\n", "" ], "text/plain": [ - " 96 \\\n", - "schedule_gtfs_dataset_key 0c092a514e4b9ad1427bdacdc67a0091 \n", - "vp_per_min_agency 0.00 \n", - "spatial_accuracy_agency 0.00 \n", - "service_date 2024-11-13 00:00:00 \n", - "operator_n_routes 7.00 \n", - "operator_n_trips 154.00 \n", - "operator_n_shapes 21.00 \n", - "operator_n_stops 134.00 \n", - "operator_n_arrivals 3580.00 \n", - "operator_route_length_miles 153.64 \n", - "operator_arrivals_per_stop 26.72 \n", - "n_downtown_local_routes 0.00 \n", - "n_local_routes 0.00 \n", - "n_coverage_routes 14.00 \n", - "n_rapid_routes 7.00 \n", - "n_express_routes 0.00 \n", - "n_rail_routes 0.00 \n", - "name Mountain Transit GMV Schedule \n", - "organization_source_record_id recHbquam1bWEwC3P \n", - "organization_name Mountain Area Regional Transit Authority \n", - "caltrans_district 08 - San Bernardino \n", - "counties_served 0 \n", - "service_area_sq_miles 0 \n", - "hq_city Big Bear Lake \n", - "uza_name 0 \n", - "service_area_pop 0 \n", - "organization_type Public Agency or Authority of Transit Service \n", - "primary_uza 0 \n", - "reporter_type Rural Reporter \n", - "\n", - " 97 \n", - "schedule_gtfs_dataset_key 5ca5d244836397b178993c9bdc4dfb00 \n", - "vp_per_min_agency 0.00 \n", - "spatial_accuracy_agency 0.00 \n", - "service_date 2024-11-13 00:00:00 \n", - "operator_n_routes 7.00 \n", - "operator_n_trips 172.00 \n", - "operator_n_shapes 27.00 \n", - "operator_n_stops 127.00 \n", - "operator_n_arrivals 2978.00 \n", - "operator_route_length_miles 145.58 \n", - "operator_arrivals_per_stop 23.45 \n", - "n_downtown_local_routes 1.00 \n", - "n_local_routes 0.00 \n", - "n_coverage_routes 14.00 \n", - "n_rapid_routes 5.00 \n", - "n_express_routes 0.00 \n", - "n_rail_routes 0.00 \n", - "name Mountain Transit Schedule \n", - "organization_source_record_id recHbquam1bWEwC3P \n", - "organization_name Mountain Area Regional Transit Authority \n", - "caltrans_district 08 - San Bernardino \n", - "counties_served 0 \n", - "service_area_sq_miles 0 \n", - "hq_city Big Bear Lake \n", - "uza_name 0 \n", - "service_area_pop 0 \n", - "organization_type Public Agency or Authority of Transit Service \n", - "primary_uza 0 \n", - "reporter_type Rural Reporter " + " 4\n", + "schedule_gtfs_dataset_key f4c3ea214214ee0d96f7646b3e9d69dc\n", + "vp_per_min_agency 1.99\n", + "spatial_accuracy_agency 99.02\n", + "service_date 2024-11-13 00:00:00\n", + "operator_n_routes 9.00\n", + "operator_n_trips 147.00\n", + "operator_n_shapes 10.00\n", + "operator_n_stops 157.00\n", + "operator_n_arrivals 3916.00\n", + "operator_route_length_miles 84.95\n", + "operator_arrivals_per_stop 24.94\n", + "n_downtown_local_routes 1.00\n", + "n_local_routes 2.00\n", + "n_coverage_routes 6.00\n", + "n_rapid_routes 9.00\n", + "n_express_routes 0.00\n", + "n_rail_routes 0.00\n", + "name SLO Peak Transit Schedule\n", + "organization_source_record_id recMM99msxjmc6PPv\n", + "organization_name City of San Luis Obispo\n", + "caltrans_district 05 - San Luis Obispo\n", + "counties_served San Luis Obispo\n", + "service_area_sq_miles 22\n", + "hq_city San Luis Obispo\n", + "uza_name San Luis Obispo, CA\n", + "service_area_pop 46997\n", + "organization_type County or Local Government Unit or Department of Transportation\n", + "primary_uza 0\n", + "reporter_type Full Reporter\n", + "n_names 2" ] }, - "execution_count": 15, "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "operator_df.loc[operator_df.name.isin(mountain_subset)].T" - ] - }, - { - "cell_type": "markdown", - "id": "03857c13-42ba-4403-ad61-971e68c90f4b", - "metadata": {}, - "source": [ - "### Desert Roadrunner differ too! " - ] - }, - { - "cell_type": "code", - "execution_count": 18, - "id": "d18bfb5a-48b8-4d8f-ba89-701888d92f76", - "metadata": {}, - "outputs": [], - "source": [ - "desert_subset = [ 'Desert Roadrunner GMV Schedule', 'Desert Roadrunner Schedule',]" - ] - }, - { - "cell_type": "code", - "execution_count": 19, - "id": "59242e4d-a7e3-4e94-af9a-4fa0a345e9b7", - "metadata": { - "scrolled": true, - "tags": [] - }, - "outputs": [ + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Los Angeles County Metropolitan Transportation Authority\n" + ] + }, + { + "data": { + "text/plain": [ + "False 17\n", + "True 13\n", + "Name: same, dtype: int64" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, { "data": { "text/html": [ @@ -2309,257 +1848,304 @@ " \n", " \n", " \n", - " 51\n", - " 52\n", + " name1\n", + " name2\n", + " same\n", " \n", " \n", " \n", " \n", " schedule_gtfs_dataset_key\n", - " 4383eb1cca04093020f1583f57f32d9b\n", - " ac9384d5e25378d1898ca522070cef66\n", + " 0666caf3ec1ecc96b74f4477ee4bc939\n", + " 2a0571758141f412b6a546fd70a65bf3\n", + " False\n", " \n", " \n", " vp_per_min_agency\n", - " 2.93\n", - " 0.00\n", + " 2.06\n", + " 1.31\n", + " False\n", " \n", " \n", " spatial_accuracy_agency\n", - " 84.83\n", - " 0.00\n", + " 91.81\n", + " 94.91\n", + " False\n", " \n", " \n", " service_date\n", " 2024-11-13 00:00:00\n", " 2024-11-13 00:00:00\n", + " True\n", " \n", " \n", " operator_n_routes\n", - " 5.00\n", - " 5.00\n", + " 111.00\n", + " 6.00\n", + " False\n", " \n", " \n", " operator_n_trips\n", - " 54.00\n", - " 45.00\n", + " 13658.00\n", + " 1485.00\n", + " False\n", " \n", " \n", " operator_n_shapes\n", - " 9.00\n", - " 14.00\n", + " 602.00\n", + " 12.00\n", + " False\n", " \n", " \n", " operator_n_stops\n", - " 39.00\n", - " 161.00\n", + " 12008.00\n", + " 106.00\n", + " False\n", " \n", " \n", " operator_n_arrivals\n", - " 472.00\n", - " 1753.00\n", + " 860096.00\n", + " 25331.00\n", + " False\n", " \n", " \n", " operator_route_length_miles\n", - " 220.10\n", - " 228.79\n", + " 1955.29\n", + " 121.40\n", + " False\n", " \n", " \n", " operator_arrivals_per_stop\n", - " 12.10\n", - " 10.89\n", + " 71.63\n", + " 238.97\n", + " False\n", " \n", " \n", " n_downtown_local_routes\n", - " 1.00\n", - " 1.00\n", + " 216.00\n", + " 12.00\n", + " False\n", " \n", " \n", " n_local_routes\n", - " 2.00\n", - " 1.00\n", - " \n", + " 7.00\n", + " 0.00\n", + " False\n", + " \n", " \n", " n_coverage_routes\n", - " 8.00\n", - " 7.00\n", + " 18.00\n", + " 0.00\n", + " False\n", " \n", " \n", " n_rapid_routes\n", - " 1.00\n", - " 1.00\n", + " 25.00\n", + " 0.00\n", + " False\n", " \n", " \n", " n_express_routes\n", - " 1.00\n", - " 1.00\n", + " 12.00\n", + " 0.00\n", + " False\n", " \n", " \n", " n_rail_routes\n", " 0.00\n", - " 0.00\n", + " 12.00\n", + " False\n", " \n", " \n", " name\n", - " Desert Roadrunner GMV Schedule\n", - " Desert Roadrunner Schedule\n", + " LA Metro Bus Schedule\n", + " LA Metro Rail Schedule\n", + " False\n", " \n", " \n", " organization_source_record_id\n", - " recGcv4NidDjwVSiN\n", - " recGcv4NidDjwVSiN\n", + " recPnGkwdpnr8jmHB\n", + " recPnGkwdpnr8jmHB\n", + " True\n", " \n", " \n", " organization_name\n", - " Palo Verde Valley Transit Agency\n", - " Palo Verde Valley Transit Agency\n", + " Los Angeles County Metropolitan Transportation Authority\n", + " Los Angeles County Metropolitan Transportation Authority\n", + " True\n", " \n", " \n", " caltrans_district\n", - " 08 - San Bernardino\n", - " 08 - San Bernardino\n", + " 07 - Los Angeles\n", + " 07 - Los Angeles\n", + " True\n", " \n", " \n", " counties_served\n", - " 0\n", - " 0\n", + " Los Angeles\n", + " Los Angeles\n", + " True\n", " \n", " \n", " service_area_sq_miles\n", - " 0\n", - " 0\n", + " 4099\n", + " 4099\n", + " True\n", " \n", " \n", " hq_city\n", - " Blythe\n", - " Blythe\n", + " Los Angeles\n", + " Los Angeles\n", + " True\n", " \n", " \n", " uza_name\n", - " 0\n", - " 0\n", + " Los Angeles--Long Beach--Anaheim, CA\n", + " Los Angeles--Long Beach--Anaheim, CA\n", + " True\n", " \n", " \n", " service_area_pop\n", - " 0\n", - " 0\n", + " 10394849\n", + " 10394849\n", + " True\n", " \n", " \n", " organization_type\n", " Public Agency or Authority of Transit Service\n", " Public Agency or Authority of Transit Service\n", + " True\n", " \n", " \n", " primary_uza\n", " 0\n", " 0\n", + " True\n", " \n", " \n", " reporter_type\n", - " Rural Reporter\n", - " Rural Reporter\n", + " Full Reporter\n", + " Full Reporter\n", + " True\n", + " \n", + " \n", + " n_names\n", + " 2\n", + " 2\n", + " True\n", " \n", " \n", "\n", "" ], "text/plain": [ - " 51 \\\n", - "schedule_gtfs_dataset_key 4383eb1cca04093020f1583f57f32d9b \n", - "vp_per_min_agency 2.93 \n", - "spatial_accuracy_agency 84.83 \n", - "service_date 2024-11-13 00:00:00 \n", - "operator_n_routes 5.00 \n", - "operator_n_trips 54.00 \n", - "operator_n_shapes 9.00 \n", - "operator_n_stops 39.00 \n", - "operator_n_arrivals 472.00 \n", - "operator_route_length_miles 220.10 \n", - "operator_arrivals_per_stop 12.10 \n", - "n_downtown_local_routes 1.00 \n", - "n_local_routes 2.00 \n", - "n_coverage_routes 8.00 \n", - "n_rapid_routes 1.00 \n", - "n_express_routes 1.00 \n", - "n_rail_routes 0.00 \n", - "name Desert Roadrunner GMV Schedule \n", - "organization_source_record_id recGcv4NidDjwVSiN \n", - "organization_name Palo Verde Valley Transit Agency \n", - "caltrans_district 08 - San Bernardino \n", - "counties_served 0 \n", - "service_area_sq_miles 0 \n", - "hq_city Blythe \n", - "uza_name 0 \n", - "service_area_pop 0 \n", - "organization_type Public Agency or Authority of Transit Service \n", - "primary_uza 0 \n", - "reporter_type Rural Reporter \n", + " name1 \\\n", + "schedule_gtfs_dataset_key 0666caf3ec1ecc96b74f4477ee4bc939 \n", + "vp_per_min_agency 2.06 \n", + "spatial_accuracy_agency 91.81 \n", + "service_date 2024-11-13 00:00:00 \n", + "operator_n_routes 111.00 \n", + "operator_n_trips 13658.00 \n", + "operator_n_shapes 602.00 \n", + "operator_n_stops 12008.00 \n", + "operator_n_arrivals 860096.00 \n", + "operator_route_length_miles 1955.29 \n", + "operator_arrivals_per_stop 71.63 \n", + "n_downtown_local_routes 216.00 \n", + "n_local_routes 7.00 \n", + "n_coverage_routes 18.00 \n", + "n_rapid_routes 25.00 \n", + "n_express_routes 12.00 \n", + "n_rail_routes 0.00 \n", + "name LA Metro Bus Schedule \n", + "organization_source_record_id recPnGkwdpnr8jmHB \n", + "organization_name Los Angeles County Metropolitan Transportation Authority \n", + "caltrans_district 07 - Los Angeles \n", + "counties_served Los Angeles \n", + "service_area_sq_miles 4099 \n", + "hq_city Los Angeles \n", + "uza_name Los Angeles--Long Beach--Anaheim, CA \n", + "service_area_pop 10394849 \n", + "organization_type Public Agency or Authority of Transit Service \n", + "primary_uza 0 \n", + "reporter_type Full Reporter \n", + "n_names 2 \n", + "\n", + " name2 \\\n", + "schedule_gtfs_dataset_key 2a0571758141f412b6a546fd70a65bf3 \n", + "vp_per_min_agency 1.31 \n", + "spatial_accuracy_agency 94.91 \n", + "service_date 2024-11-13 00:00:00 \n", + "operator_n_routes 6.00 \n", + "operator_n_trips 1485.00 \n", + "operator_n_shapes 12.00 \n", + "operator_n_stops 106.00 \n", + "operator_n_arrivals 25331.00 \n", + "operator_route_length_miles 121.40 \n", + "operator_arrivals_per_stop 238.97 \n", + "n_downtown_local_routes 12.00 \n", + "n_local_routes 0.00 \n", + "n_coverage_routes 0.00 \n", + "n_rapid_routes 0.00 \n", + "n_express_routes 0.00 \n", + "n_rail_routes 12.00 \n", + "name LA Metro Rail Schedule \n", + "organization_source_record_id recPnGkwdpnr8jmHB \n", + "organization_name Los Angeles County Metropolitan Transportation Authority \n", + "caltrans_district 07 - Los Angeles \n", + "counties_served Los Angeles \n", + "service_area_sq_miles 4099 \n", + "hq_city Los Angeles \n", + "uza_name Los Angeles--Long Beach--Anaheim, CA \n", + "service_area_pop 10394849 \n", + "organization_type Public Agency or Authority of Transit Service \n", + "primary_uza 0 \n", + "reporter_type Full Reporter \n", + "n_names 2 \n", "\n", - " 52 \n", - "schedule_gtfs_dataset_key ac9384d5e25378d1898ca522070cef66 \n", - "vp_per_min_agency 0.00 \n", - "spatial_accuracy_agency 0.00 \n", - "service_date 2024-11-13 00:00:00 \n", - "operator_n_routes 5.00 \n", - "operator_n_trips 45.00 \n", - "operator_n_shapes 14.00 \n", - "operator_n_stops 161.00 \n", - "operator_n_arrivals 1753.00 \n", - "operator_route_length_miles 228.79 \n", - "operator_arrivals_per_stop 10.89 \n", - "n_downtown_local_routes 1.00 \n", - "n_local_routes 1.00 \n", - "n_coverage_routes 7.00 \n", - "n_rapid_routes 1.00 \n", - "n_express_routes 1.00 \n", - "n_rail_routes 0.00 \n", - "name Desert Roadrunner Schedule \n", - "organization_source_record_id recGcv4NidDjwVSiN \n", - "organization_name Palo Verde Valley Transit Agency \n", - "caltrans_district 08 - San Bernardino \n", - "counties_served 0 \n", - "service_area_sq_miles 0 \n", - "hq_city Blythe \n", - "uza_name 0 \n", - "service_area_pop 0 \n", - "organization_type Public Agency or Authority of Transit Service \n", - "primary_uza 0 \n", - "reporter_type Rural Reporter " + " same \n", + "schedule_gtfs_dataset_key False \n", + "vp_per_min_agency False \n", + "spatial_accuracy_agency False \n", + "service_date True \n", + "operator_n_routes False \n", + "operator_n_trips False \n", + "operator_n_shapes False \n", + "operator_n_stops False \n", + "operator_n_arrivals False \n", + "operator_route_length_miles False \n", + "operator_arrivals_per_stop False \n", + "n_downtown_local_routes False \n", + "n_local_routes False \n", + "n_coverage_routes False \n", + "n_rapid_routes False \n", + "n_express_routes False \n", + "n_rail_routes False \n", + "name False \n", + "organization_source_record_id True \n", + "organization_name True \n", + "caltrans_district True \n", + "counties_served True \n", + "service_area_sq_miles True \n", + "hq_city True \n", + "uza_name True \n", + "service_area_pop True \n", + "organization_type True \n", + "primary_uza True \n", + "reporter_type True \n", + "n_names True " ] }, - "execution_count": 19, "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "operator_df2.loc[operator_df2.name.isin(desert_subset)].T" - ] - }, - { - "cell_type": "markdown", - "id": "61a04dc8-53e9-4deb-a857-89173e97d5c0", - "metadata": {}, - "source": [ - "### Tahoe" - ] - }, - { - "cell_type": "code", - "execution_count": 30, - "id": "b47f2921-9fe1-4a6c-b324-5cf4cabe4a26", - "metadata": {}, - "outputs": [], - "source": [ - "tahoe_subset = [\"Tahoe Transportation District GMV Schedule\", \"Tahoe Transportation District Schedule\"]" - ] - }, - { - "cell_type": "code", - "execution_count": 31, - "id": "b5c998a3-f595-4eb3-af48-ba6c64d850c0", - "metadata": {}, - "outputs": [ + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Palo Verde Valley Transit Agency\n" + ] + }, { "data": { "text/html": [ @@ -2581,266 +2167,178 @@ " \n", " \n", " \n", - " 130\n", - " 131\n", + " 7\n", " \n", " \n", " \n", " \n", " schedule_gtfs_dataset_key\n", - " c3499b856c717e5706299664fb1c5261\n", - " 07d3b79f14cec8099119e1eb649f065b\n", + " 4383eb1cca04093020f1583f57f32d9b\n", " \n", " \n", " vp_per_min_agency\n", - " 2.89\n", - " 0.00\n", + " 2.93\n", " \n", " \n", " spatial_accuracy_agency\n", - " 93.59\n", - " 0.00\n", + " 84.83\n", " \n", " \n", " service_date\n", " 2024-11-13 00:00:00\n", - " 2024-11-13 00:00:00\n", " \n", " \n", " operator_n_routes\n", - " 4.00\n", " 5.00\n", " \n", " \n", " operator_n_trips\n", - " 121.00\n", - " 132.00\n", + " 54.00\n", " \n", " \n", " operator_n_shapes\n", " 9.00\n", - " 13.00\n", " \n", " \n", " operator_n_stops\n", - " 117.00\n", - " 123.00\n", + " 39.00\n", " \n", " \n", " operator_n_arrivals\n", - " 2544.00\n", - " 2409.00\n", + " 472.00\n", " \n", " \n", " operator_route_length_miles\n", - " 64.68\n", - " 90.82\n", + " 220.10\n", " \n", " \n", " operator_arrivals_per_stop\n", - " 21.74\n", - " 19.59\n", + " 12.10\n", " \n", " \n", " n_downtown_local_routes\n", - " 0.00\n", - " 0.00\n", + " 1.00\n", " \n", " \n", " n_local_routes\n", - " 1.00\n", - " 1.00\n", + " 2.00\n", " \n", " \n", " n_coverage_routes\n", - " 3.00\n", - " 3.00\n", + " 8.00\n", " \n", " \n", " n_rapid_routes\n", - " 3.00\n", - " 3.00\n", + " 1.00\n", " \n", " \n", " n_express_routes\n", - " 0.00\n", - " 0.00\n", + " 1.00\n", " \n", " \n", " n_rail_routes\n", " 0.00\n", - " 0.00\n", " \n", " \n", " name\n", - " Tahoe Transportation District GMV Schedule\n", - " Tahoe Transportation District Schedule\n", + " Desert Roadrunner GMV Schedule\n", " \n", " \n", " organization_source_record_id\n", - " rec3u4aMplqObcoTR\n", - " rec3u4aMplqObcoTR\n", + " recGcv4NidDjwVSiN\n", " \n", " \n", " organization_name\n", - " Tahoe Transportation District\n", - " Tahoe Transportation District\n", + " Palo Verde Valley Transit Agency\n", " \n", " \n", " caltrans_district\n", - " 03 - Marysville\n", - " 03 - Marysville\n", + " 08 - San Bernardino\n", " \n", " \n", " counties_served\n", " 0\n", - " 0\n", " \n", " \n", " service_area_sq_miles\n", " 0\n", - " 0\n", " \n", " \n", " hq_city\n", - " 0\n", - " 0\n", + " Blythe\n", " \n", " \n", " uza_name\n", " 0\n", - " 0\n", " \n", " \n", " service_area_pop\n", " 0\n", - " 0\n", " \n", " \n", " organization_type\n", - " 0\n", - " 0\n", + " Public Agency or Authority of Transit Service\n", " \n", " \n", " primary_uza\n", " 0\n", - " 0\n", " \n", " \n", " reporter_type\n", - " 0\n", - " 0\n", + " Rural Reporter\n", + " \n", + " \n", + " n_names\n", + " 2\n", " \n", " \n", "\n", "" ], "text/plain": [ - " 130 \\\n", - "schedule_gtfs_dataset_key c3499b856c717e5706299664fb1c5261 \n", - "vp_per_min_agency 2.89 \n", - "spatial_accuracy_agency 93.59 \n", - "service_date 2024-11-13 00:00:00 \n", - "operator_n_routes 4.00 \n", - "operator_n_trips 121.00 \n", - "operator_n_shapes 9.00 \n", - "operator_n_stops 117.00 \n", - "operator_n_arrivals 2544.00 \n", - "operator_route_length_miles 64.68 \n", - "operator_arrivals_per_stop 21.74 \n", - "n_downtown_local_routes 0.00 \n", - "n_local_routes 1.00 \n", - "n_coverage_routes 3.00 \n", - "n_rapid_routes 3.00 \n", - "n_express_routes 0.00 \n", - "n_rail_routes 0.00 \n", - "name Tahoe Transportation District GMV Schedule \n", - "organization_source_record_id rec3u4aMplqObcoTR \n", - "organization_name Tahoe Transportation District \n", - "caltrans_district 03 - Marysville \n", - "counties_served 0 \n", - "service_area_sq_miles 0 \n", - "hq_city 0 \n", - "uza_name 0 \n", - "service_area_pop 0 \n", - "organization_type 0 \n", - "primary_uza 0 \n", - "reporter_type 0 \n", - "\n", - " 131 \n", - "schedule_gtfs_dataset_key 07d3b79f14cec8099119e1eb649f065b \n", - "vp_per_min_agency 0.00 \n", - "spatial_accuracy_agency 0.00 \n", - "service_date 2024-11-13 00:00:00 \n", - "operator_n_routes 5.00 \n", - "operator_n_trips 132.00 \n", - "operator_n_shapes 13.00 \n", - "operator_n_stops 123.00 \n", - "operator_n_arrivals 2409.00 \n", - "operator_route_length_miles 90.82 \n", - "operator_arrivals_per_stop 19.59 \n", - "n_downtown_local_routes 0.00 \n", - "n_local_routes 1.00 \n", - "n_coverage_routes 3.00 \n", - "n_rapid_routes 3.00 \n", - "n_express_routes 0.00 \n", - "n_rail_routes 0.00 \n", - "name Tahoe Transportation District Schedule \n", - "organization_source_record_id rec3u4aMplqObcoTR \n", - "organization_name Tahoe Transportation District \n", - "caltrans_district 03 - Marysville \n", - "counties_served 0 \n", - "service_area_sq_miles 0 \n", - "hq_city 0 \n", - "uza_name 0 \n", - "service_area_pop 0 \n", - "organization_type 0 \n", - "primary_uza 0 \n", - "reporter_type 0 " + " 7\n", + "schedule_gtfs_dataset_key 4383eb1cca04093020f1583f57f32d9b\n", + "vp_per_min_agency 2.93\n", + "spatial_accuracy_agency 84.83\n", + "service_date 2024-11-13 00:00:00\n", + "operator_n_routes 5.00\n", + "operator_n_trips 54.00\n", + "operator_n_shapes 9.00\n", + "operator_n_stops 39.00\n", + "operator_n_arrivals 472.00\n", + "operator_route_length_miles 220.10\n", + "operator_arrivals_per_stop 12.10\n", + "n_downtown_local_routes 1.00\n", + "n_local_routes 2.00\n", + "n_coverage_routes 8.00\n", + "n_rapid_routes 1.00\n", + "n_express_routes 1.00\n", + "n_rail_routes 0.00\n", + "name Desert Roadrunner GMV Schedule\n", + "organization_source_record_id recGcv4NidDjwVSiN\n", + "organization_name Palo Verde Valley Transit Agency\n", + "caltrans_district 08 - San Bernardino\n", + "counties_served 0\n", + "service_area_sq_miles 0\n", + "hq_city Blythe\n", + "uza_name 0\n", + "service_area_pop 0\n", + "organization_type Public Agency or Authority of Transit Service\n", + "primary_uza 0\n", + "reporter_type Rural Reporter\n", + "n_names 2" ] }, - "execution_count": 31, "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "operator_df2.loc[operator_df2.name.isin(tahoe_subset)].T" - ] - }, - { - "cell_type": "markdown", - "id": "60f3035f-8d89-4d4a-992c-dd3b51a46ca6", - "metadata": {}, - "source": [ - "### View two names to one org examples: 15 of these cases.\n", - "* D1 Redwood Coast Transit Authority - One name is misspelled\n", - "* D3: City of Roseville\n", - "* D3: Tahoe Transportation District \t\n", - "* D4: Mission Bay Transportation Management Agency \t\n", - "* D4: Presidio Trust \t\n", - "* D5: City of San Luis Obispo \t\n", - "* D7: City of Downey \t\n", - "* D7: City of Lawndale\n", - "* D7: Los Angeles County Metropolitan Transportation Authority \t (this one is ok)\n", - "* D8: Basin Transit\n", - "* D8: City of Beaumont\n", - "* D8:Mountain Area Regional Transit Authority\n", - "* D8: Palo Verde Valley Transit Agency \t\n", - "* D8: Victor Valley Transit Authority \t\n", - "* D10: Transit Joint Powers Authority for Merced County \t\n", - "* " - ] - }, - { - "cell_type": "code", - "execution_count": 26, - "id": "97b74658-d1d9-49b7-8ab3-70959532c1b2", - "metadata": { - "scrolled": true, - "tags": [] - }, - "outputs": [ + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Presidio Trust\n" + ] + }, { "data": { "text/html": [ @@ -2862,873 +2360,907 @@ " \n", " \n", " \n", - " \n", - " \n", - " service_date\n", - " \n", - " \n", - " caltrans_district\n", - " organization_name\n", - " name\n", - " \n", + " 8\n", " \n", " \n", " \n", " \n", - " 01 - Eureka\n", - " City of Eureka\n", - " Humboldt Schedule\n", - " 1\n", - " \n", - " \n", - " Lake Transit Authority\n", - " Lake Schedule\n", - " 1\n", - " \n", - " \n", - " Mendocino Transit Authority\n", - " Mendocino Schedule\n", - " 1\n", - " \n", - " \n", - " Redwood Coast Transit Authority\n", - " Redwood Coast Schedule\n", - " 1\n", + " schedule_gtfs_dataset_key\n", + " 85a39da903f4beb0b66a4ba6f16a35af\n", " \n", " \n", - " Redwood Coast Schedulel\n", - " 1\n", + " vp_per_min_agency\n", + " 3.00\n", " \n", " \n", - " 02 - Redding\n", - " Lassen Transit Service Agency\n", - " Lassen Schedule\n", - " 1\n", + " spatial_accuracy_agency\n", + " 45.74\n", " \n", " \n", - " Modoc Transportation Agency\n", - " Sage Stage Schedule\n", - " 1\n", + " service_date\n", + " 2024-11-13 00:00:00\n", " \n", " \n", - " Plumas Transit Systems\n", - " Plumas Schedule\n", - " 1\n", + " operator_n_routes\n", + " 2.00\n", " \n", " \n", - " Shasta County\n", - " Redding Schedule\n", - " 1\n", + " operator_n_trips\n", + " 56.00\n", " \n", " \n", - " Siskiyou County\n", - " Siskiyou Schedule\n", - " 1\n", + " operator_n_shapes\n", + " 2.00\n", " \n", " \n", - " Tehama County\n", - " Tehama Schedule\n", - " 1\n", + " operator_n_stops\n", + " 31.00\n", " \n", " \n", - " Trinity County\n", - " Trinity Schedule\n", - " 1\n", + " operator_n_arrivals\n", + " 890.00\n", " \n", " \n", - " 03 - Marysville\n", - " Butte County Association of Governments\n", - " B-Line Schedule\n", - " 1\n", + " operator_route_length_miles\n", + " 15.64\n", " \n", " \n", - " City of Auburn\n", - " Auburn Schedule\n", - " 1\n", + " operator_arrivals_per_stop\n", + " 28.71\n", " \n", " \n", - " City of Elk Grove\n", - " Elk Grove Schedule\n", - " 1\n", + " n_downtown_local_routes\n", + " 2.00\n", " \n", " \n", - " City of Rancho Cordova\n", - " Sacramento Schedule\n", - " 1\n", + " n_local_routes\n", + " 0.00\n", " \n", " \n", - " City of Roseville\n", - " Roseville Schedule\n", - " 1\n", + " n_coverage_routes\n", + " 0.00\n", " \n", " \n", - " Roseville Transit GMV Schedule\n", - " 1\n", + " n_rapid_routes\n", + " 1.00\n", " \n", " \n", - " El Dorado County Transit Authority\n", - " El Dorado Schedule\n", - " 1\n", + " n_express_routes\n", + " 0.00\n", " \n", " \n", - " Glenn County\n", - " Glenn Schedule\n", - " 1\n", + " n_rail_routes\n", + " 0.00\n", " \n", " \n", - " Nevada County\n", - " Nevada County Schedule\n", - " 1\n", + " name\n", + " Bay Area 511 PresidiGo Schedule\n", " \n", " \n", - " North Lake Tahoe Express\n", - " TART, North Lake Tahoe Schedule\n", - " 1\n", + " organization_source_record_id\n", + " recsBfXgev9ICDCY1\n", " \n", " \n", - " Placer County\n", - " Placer Schedule\n", - " 1\n", + " organization_name\n", + " Presidio Trust\n", " \n", " \n", - " Sacramento County\n", - " South County Transit Link Schedule\n", - " 1\n", + " caltrans_district\n", + " 04 - Oakland\n", " \n", " \n", - " Tahoe Transportation District\n", - " Tahoe Transportation District GMV Schedule\n", - " 1\n", + " counties_served\n", + " 0\n", " \n", " \n", - " Tahoe Transportation District Schedule\n", - " 1\n", + " service_area_sq_miles\n", + " 0\n", " \n", " \n", - " University of California, Davis\n", - " Unitrans Schedule\n", - " 1\n", + " hq_city\n", + " 0\n", " \n", " \n", - " Yolo County Transportation District\n", - " Yolobus Schedule\n", - " 1\n", + " uza_name\n", + " 0\n", " \n", " \n", - " Yuba-Sutter Transit Authority\n", - " Yuba-Sutter Schedule\n", - " 1\n", + " service_area_pop\n", + " 0\n", " \n", " \n", - " 04 - Oakland\n", - " Alameda-Contra Costa Transit District\n", - " Bay Area 511 AC Transit Schedule\n", - " 1\n", + " organization_type\n", + " 0\n", " \n", " \n", - " Capitol Corridor Joint Powers Authority\n", - " Bay Area 511 Capitol Corridor Schedule\n", - " 1\n", + " primary_uza\n", + " 0\n", " \n", " \n", - " Central Contra Costa Transit Authority\n", - " Bay Area 511 County Connection Schedule\n", - " 1\n", + " reporter_type\n", + " 0\n", " \n", " \n", - " City and County of San Francisco\n", - " Bay Area 511 Muni Schedule\n", - " 1\n", + " n_names\n", + " 2\n", " \n", - " \n", - " City of Fairfield\n", - " Bay Area 511 Fairfield and Suisun Transit Schedule\n", - " 1\n", - " \n", - " \n", - " City of Menlo Park\n", - " Bay Area 511 Commute.org Schedule\n", - " 1\n", - " \n", - " \n", - " City of Mountain View\n", - " Bay Area 511 Mountain View Community Shuttle Schedule\n", - " 1\n", - " \n", - " \n", - " City of Petaluma\n", - " Bay Area 511 Petaluma Schedule\n", - " 1\n", - " \n", - " \n", - " City of Rio Vista\n", - " Bay Area 511 Rio Vista Delta Breeze Schedule\n", - " 1\n", - " \n", - " \n", - " City of Santa Rosa\n", - " Bay Area 511 Santa Rosa CityBus Schedule\n", - " 1\n", - " \n", - " \n", - " City of South San Francisco\n", - " Bay Area 511 South San Francisco Shuttle Schedule\n", - " 1\n", - " \n", - " \n", - " City of Union City\n", - " Bay Area 511 Union City Transit Schedule\n", - " 1\n", - " \n", - " \n", - " City of Vacaville\n", - " Bay Area 511 Vacaville City Coach Schedule\n", - " 1\n", - " \n", - " \n", - " Dumbarton Bridge Regional Operations Consortium\n", - " Bay Area 511 Dumbarton Express Schedule\n", - " 1\n", - " \n", - " \n", - " Eastern Contra Costa Transit Authority\n", - " Bay Area 511 Tri Delta Schedule\n", - " 1\n", + " \n", + "\n", + "" + ], + "text/plain": [ + " 8\n", + "schedule_gtfs_dataset_key 85a39da903f4beb0b66a4ba6f16a35af\n", + "vp_per_min_agency 3.00\n", + "spatial_accuracy_agency 45.74\n", + "service_date 2024-11-13 00:00:00\n", + "operator_n_routes 2.00\n", + "operator_n_trips 56.00\n", + "operator_n_shapes 2.00\n", + "operator_n_stops 31.00\n", + "operator_n_arrivals 890.00\n", + "operator_route_length_miles 15.64\n", + "operator_arrivals_per_stop 28.71\n", + "n_downtown_local_routes 2.00\n", + "n_local_routes 0.00\n", + "n_coverage_routes 0.00\n", + "n_rapid_routes 1.00\n", + "n_express_routes 0.00\n", + "n_rail_routes 0.00\n", + "name Bay Area 511 PresidiGo Schedule\n", + "organization_source_record_id recsBfXgev9ICDCY1\n", + "organization_name Presidio Trust\n", + "caltrans_district 04 - Oakland\n", + "counties_served 0\n", + "service_area_sq_miles 0\n", + "hq_city 0\n", + "uza_name 0\n", + "service_area_pop 0\n", + "organization_type 0\n", + "primary_uza 0\n", + "reporter_type 0\n", + "n_names 2" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Tahoe Transportation District\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + "
10
Emeryville Transportation Management AgencyBay Area 511 Emery Go-Round Schedule1schedule_gtfs_dataset_keyc3499b856c717e5706299664fb1c5261
Golden Gate Bridge, Highway and Transportation DistrictBay Area 511 Golden Gate Transit Schedule1vp_per_min_agency2.89
Livermore-Amador Valley Transit AuthorityBay Area 511 Tri-Valley Wheels Schedule1spatial_accuracy_agency93.59
Marin County Transit DistrictBay Area 511 Marin Schedule1service_date2024-11-13 00:00:00
Mission Bay Transportation Management AgencyBay Area 511 Mission Bay Schedule1operator_n_routes4.00
Mission Bay Schedule1operator_n_trips121.00
Mountain View Transportation Management AssociationBay Area 511 MVGO Schedule1operator_n_shapes9.00
Napa Valley Transportation AuthorityBay Area 511 Vine Transit Schedule1operator_n_stops117.00
Presidio TrustBay Area 511 PresidiGo Schedule1operator_n_arrivals2544.00
PresidiGo Schedule1operator_route_length_miles64.68
San Francisco Bay Area Rapid Transit DistrictBay Area 511 BART Schedule1operator_arrivals_per_stop21.74
San Mateo County Transit DistrictBay Area 511 SamTrans Schedule1n_downtown_local_routes0.00
Santa Clara Valley Transportation AuthorityBay Area 511 Santa Clara Transit Schedule1n_local_routes1.00
Solano County TransitBay Area 511 SolTrans Schedule1n_coverage_routes3.00
Sonoma CountyBay Area 511 Sonoma County Transit Schedule1n_rapid_routes3.00
Stanford UniversityStanford Schedule1n_express_routes0.00
University of California, BerkeleyBear Schedule1n_rail_routes0.00
Western Contra Costa Transit AuthorityBay Area 511 WestCAT Schedule1nameTahoe Transportation District GMV Schedule
05 - San Luis ObispoCity of GuadalupeGuadalupe Flyer Schedule1organization_source_record_idrec3u4aMplqObcoTR
City of San Luis ObispoSLO Peak Transit Schedule1organization_nameTahoe Transportation District
SLO Schedule1caltrans_district03 - Marysville
City of Santa MariaSanta Maria Schedule1counties_served0
City of SolvangSanta Ynez Mecatran Schedule1service_area_sq_miles0
Monterey-Salinas TransitMonterey Salinas Schedule1hq_city0
San Benito County Local Transportation AuthorityCounty Express Schedule1uza_name0
San Luis Obispo Regional Transit AuthoritySLORTA Schedule1service_area_pop0
Santa Barbara County Association of GovernmentsClean Air Express Schedule1organization_type0
Santa Barbara Metropolitan Transit DistrictSBMTD Schedule1primary_uza0
Santa Cruz Metropolitan Transit DistrictSanta Cruz Schedule1reporter_type0
University of California, Santa CruzUCSC Schedule1n_names2
06 - FresnoCity of ArvinArvin Schedule1
\n", + "
" + ], + "text/plain": [ + " 10\n", + "schedule_gtfs_dataset_key c3499b856c717e5706299664fb1c5261\n", + "vp_per_min_agency 2.89\n", + "spatial_accuracy_agency 93.59\n", + "service_date 2024-11-13 00:00:00\n", + "operator_n_routes 4.00\n", + "operator_n_trips 121.00\n", + "operator_n_shapes 9.00\n", + "operator_n_stops 117.00\n", + "operator_n_arrivals 2544.00\n", + "operator_route_length_miles 64.68\n", + "operator_arrivals_per_stop 21.74\n", + "n_downtown_local_routes 0.00\n", + "n_local_routes 1.00\n", + "n_coverage_routes 3.00\n", + "n_rapid_routes 3.00\n", + "n_express_routes 0.00\n", + "n_rail_routes 0.00\n", + "name Tahoe Transportation District GMV Schedule\n", + "organization_source_record_id rec3u4aMplqObcoTR\n", + "organization_name Tahoe Transportation District\n", + "caltrans_district 03 - Marysville\n", + "counties_served 0\n", + "service_area_sq_miles 0\n", + "hq_city 0\n", + "uza_name 0\n", + "service_area_pop 0\n", + "organization_type 0\n", + "primary_uza 0\n", + "reporter_type 0\n", + "n_names 2" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Victor Valley Transit Authority\n" + ] + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + "
11
City of ClovisClovis Schedule1schedule_gtfs_dataset_key8eecb796518dafd3c1b971a99f8b8252
City of DelanoDelano Schedule1vp_per_min_agency2.85
City of FresnoFresno Schedule1spatial_accuracy_agency94.57
City of MaderaMadera Metro Schedule1service_date2024-11-13 00:00:00
City of VisaliaVisalia Schedule1operator_n_routes33.00
Fresno County Rural Transit AgencyFresno County Schedule1operator_n_trips859.00
Golden Empire Transit DistrictGET Schedule1operator_n_shapes75.00
Kern CountyKern Schedule1operator_n_stops1062.00
Kings County Area Public Transit AgencyKings Schedule1operator_n_arrivals20968.00
Madera CountyMadera County Connection Schedule1operator_route_length_miles820.10
Tulare County Regional Transit AgencyTIME GMV Schedule1operator_arrivals_per_stop19.74
07 - Los AngelesAntelope Valley Transit AuthorityAntelope Valley Transit Authority Schedule1n_downtown_local_routes34.00
City of AlhambraAlhambra Schedule1n_local_routes17.00
City of ArcadiaArcadia Schedule1n_coverage_routes22.00
City of AvalonAvalon Schedule1n_rapid_routes37.00
City of Baldwin ParkBaldwin Park Schedule1n_express_routes0.00
City of BellLa Campana Schedule1n_rail_routes0.00
City of Bell GardensBell Gardens Schedule1nameVictor Valley GMV Schedule
City of BellflowerBellflower Bus Schedule1organization_source_record_idrecJcXMNC5MUm2uDe
City of BurbankBurbank Schedule1organization_nameVictor Valley Transit Authority
City of CalabasasCalabasas Schedule1caltrans_district08 - San Bernardino
City of CerritosCerritos on Wheels Website Schedule1counties_servedSan Bernardino
City of CommerceCommerce Schedule1service_area_sq_miles327
City of CudahyCudahy Schedule1hq_cityHesperia
City of Culver CityCulver City Schedule1uza_nameVictorville--Hesperia--Apple Valley, CA
City of DowneyDowneyLINK GMV Schedule1service_area_pop344288
DowneyLINK Schedule1organization_typePublic Agency or Authority of Transit Service
City of DuarteFoothill Schedule1primary_uza0
City of El MonteEl Monte Schedule1reporter_typeFull Reporter
City of El SegundoEl Segundo Schedule1n_names2
City of GardenaG Trans Schedule1
City of GlendaleGlendale Schedule1
City of GlendoraGlendora Schedule1
City of Huntington ParkHuntington Schedule1
City of InglewoodInglewood Schedule1
City of La PuenteLa Puente Schedule1
City of LawndaleLawndale Beat GMV Schedule1
Lawndale Schedule1
City of Los AngelesLA DOT Schedule1
City of LynwoodLynwood Schedule1
City of MaywoodMaywood Schedule1
City of Monterey ParkSpirit Bus Schedule1
City of NorwalkNorwalk Avail Schedule1
City of OjaiVCTC GMV Schedule1
City of PasadenaPasadena Schedule1
City of Redondo BeachBeach Cities GMV Schedule1
City of RosemeadRosemead Schedule1
City of Santa ClaritaSanta Clarita Schedule1
City of Santa MonicaBig Blue Bus Schedule1
City of South GateGet Around Town Express Schedule1
City of TorranceTorrance Schedule1
City of West CovinaGo West Schedule1
City of West HollywoodWeHo Schedule1
GreyhoundFlixbus Schedule1
Long Beach TransitLong Beach Schedule1
Los Angeles CountyLADPW Schedule1
Los Angeles County Metropolitan Transportation AuthorityLA Metro Bus Schedule1
LA Metro Rail Schedule1
Los Angeles World AirportsLAX FlyAway Schedule1
Palos Verdes Peninsula Transit AuthorityPalos Verdes PTA Schedule1
University of California, Los AngelesBruinBus Schedule1
08 - San BernardinoBasin TransitBasin Transit GMV Schedule1
Morongo Basin Schedule1
City of BanningBanning Pass Schedule1
City of BeaumontBeaumont Pass Schedule1
Beaumont Transit Schedule1
City of CoronaCorona Schedule1
City of NeedlesNeedles Schedule1
Mountain Area Regional Transit AuthorityMountain Transit GMV Schedule1
Mountain Transit Schedule1
OmniTransOmniTrans Schedule1
Palo Verde Valley Transit AgencyDesert Roadrunner GMV Schedule1
Desert Roadrunner Schedule1
Riverside Transit AgencyRiverside Schedule1
Victor Valley Transit AuthorityVictor Valley GMV Schedule1
Victor Valley Schedule1
09 - BishopEastern Sierra Transit AuthorityEastern Sierra Schedule1
10 - StocktonAmador Regional Transit SystemAmador Schedule1
Calaveras Transit AgencyCalaveras Schedule1
City of EscaloneTrans Schedule1
City of LodiGrapeline Schedule1
City of MantecaManteca Schedule1
City of RiponBlossom Express Schedule1
City of TracyTracy Schedule1
City of TurlockTurlock Schedule1
San Joaquin Regional Transit DistrictSan Joaquin Schedule1
Stanislaus Regional Transit AuthorityStanRTA Schedule1
Transit Joint Powers Authority for Merced CountyMerced GMV Schedule1
Merced Schedule1
Yosemite Area Regional Transportation SystemYARTS Schedule1
11 - San DiegoImperial County Transportation CommissionImperial Valley Transit Schedule1
\n", + "
" + ], + "text/plain": [ + " 11\n", + "schedule_gtfs_dataset_key 8eecb796518dafd3c1b971a99f8b8252\n", + "vp_per_min_agency 2.85\n", + "spatial_accuracy_agency 94.57\n", + "service_date 2024-11-13 00:00:00\n", + "operator_n_routes 33.00\n", + "operator_n_trips 859.00\n", + "operator_n_shapes 75.00\n", + "operator_n_stops 1062.00\n", + "operator_n_arrivals 20968.00\n", + "operator_route_length_miles 820.10\n", + "operator_arrivals_per_stop 19.74\n", + "n_downtown_local_routes 34.00\n", + "n_local_routes 17.00\n", + "n_coverage_routes 22.00\n", + "n_rapid_routes 37.00\n", + "n_express_routes 0.00\n", + "n_rail_routes 0.00\n", + "name Victor Valley GMV Schedule\n", + "organization_source_record_id recJcXMNC5MUm2uDe\n", + "organization_name Victor Valley Transit Authority\n", + "caltrans_district 08 - San Bernardino\n", + "counties_served San Bernardino\n", + "service_area_sq_miles 327\n", + "hq_city Hesperia\n", + "uza_name Victorville--Hesperia--Apple Valley, CA\n", + "service_area_pop 344288\n", + "organization_type Public Agency or Authority of Transit Service\n", + "primary_uza 0\n", + "reporter_type Full Reporter\n", + "n_names 2" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "for organization in list(orgs_with_2_names_df4.organization_name.unique()):\n", + " print(organization)\n", + " filtered = orgs_with_2_names_df5.loc[\n", + " orgs_with_2_names_df5.organization_name == organization\n", + " ].T\n", + " filtered = filtered.fillna(0)\n", + " try:\n", + " filtered.columns = [\"name1\", \"name2\"]\n", + " filtered[\"same\"] = filtered.name1 == filtered.name2\n", + " display(filtered.same.value_counts())\n", + " display(filtered)\n", + " except:\n", + " display(filtered)" + ] + }, + { + "cell_type": "markdown", + "id": "9f0d5774-050f-4d23-a19a-e474af08585b", + "metadata": {}, + "source": [ + "### Add column into crosswalk: `gtfs_funnel/crosswalk_gtfs_dataset_key_to_organization`" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "id": "2de89a0d-c230-4399-8b78-a7e78c1059ac", + "metadata": {}, + "outputs": [], + "source": [ + "import sys\n", + "\n", + "sys.path.append(\"../gtfs_funnel\")" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "id": "6cdd1539-c25e-435f-be51-f4755e2f7f21", + "metadata": {}, + "outputs": [], + "source": [ + "may_date = \"2024-05-22\"" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "id": "50214d31-1212-4d72-8df0-3065301d1255", + "metadata": {}, + "outputs": [], + "source": [ + "df = helpers.import_scheduled_trips(\n", + " may_date,\n", + " columns=[\n", + " \"gtfs_dataset_key\",\n", + " \"name\",\n", + " \"regional_feed_type\",\n", + " ],\n", + " get_pandas=True,\n", + ").rename(columns={\"schedule_gtfs_dataset_key\": \"gtfs_dataset_key\"})" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "id": "1b931452-e341-4a69-9d92-d96c6413b51e", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(168, 3)" + ] + }, + "execution_count": 40, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df.shape" + ] + }, + { + "cell_type": "markdown", + "id": "8eb11d3d-c579-41ee-9d5e-e00716847fdc", + "metadata": {}, + "source": [ + "#### Lots of missing values for `regional_feed_type` so this isn't very helpful." + ] + }, + { + "cell_type": "markdown", + "id": "a73c194e-1aa0-4477-9dc0-2def277b2566", + "metadata": {}, + "source": [ + "## Try to deduplicate all in a notebook." + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "id": "19fc8dc0-764e-4e66-b274-6be4e029cfe7", + "metadata": {}, + "outputs": [], + "source": [ + "district = \"08 - San Bernardino\"" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "id": "e7b5efa5-436d-445c-8846-b52b25307fdf", + "metadata": {}, + "outputs": [], + "source": [ + "operator_df = pd.read_parquet(\n", + " f\"{RT_SCHED_GCS}{OPERATOR_FILE}.parquet\",\n", + " filters=[[(\"caltrans_district\", \"==\", district)]],\n", + ")\n", + "\n", + "# using name instead of schedule_gtfs_dataset_key allows us to get\n", + "# the last ones for LA Metro without keeping extraneous rows for LA Metro when keys changed\n", + "operator_df = (\n", + " operator_df.sort_values([\"service_date\", \"name\"], ascending=[False, True])\n", + " .drop_duplicates(subset=[\"name\"])\n", + " .reset_index(drop=True)\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "id": "67745c26-491e-4f99-83d9-fe06c7a53da7", + "metadata": {}, + "outputs": [], + "source": [ + "# First find any organizations with more than 2 names per org-name\n", + "orgs_agg = (\n", + " operator_df.groupby([\"caltrans_district\", \"organization_name\"])\n", + " .agg({\"name\": \"nunique\"})\n", + " .reset_index()\n", + ")\n", + "orgs_agg2 = orgs_agg.loc[orgs_agg.name > 1]\n", + "orgs_with_2_names = list(orgs_agg2.organization_name.unique())" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "id": "ff536cb5-d38b-4a63-9320-ba8c2f1c0255", + "metadata": {}, + "outputs": [], + "source": [ + "# Delete out these organizations from the original df so we can manipulate them.\n", + "operator_df2 = operator_df.loc[\n", + " ~operator_df.organization_name.isin(orgs_with_2_names)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "id": "09ba03d2-4aa9-4a31-8875-b2eae80b79d5", + "metadata": {}, + "outputs": [], + "source": [ + "# Filter for these organizations with more than 2 names in their own df.\n", + "orgs_with_2_names_df = operator_df.loc[\n", + " operator_df.organization_name.isin(orgs_with_2_names)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 46, + "id": "ebd70308-d86a-4543-a00b-157467856881", + "metadata": {}, + "outputs": [], + "source": [ + "# Keep only records that are from the past 3 months\n", + "three_month_reference = orgs_with_2_names_df2[\"service_date\"].max() - pd.DateOffset(\n", + " months=3\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 47, + "id": "57c54b9f-8e0b-4021-ae3d-9eede0ed94f1", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df = orgs_with_2_names_df[\n", + " orgs_with_2_names_df[\"service_date\"] >= three_month_reference\n", + "]" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "id": "fdc50401-00ab-4594-8232-8bb00aa15e8e", + "metadata": {}, + "outputs": [], + "source": [ + "# Filter out any rows in which `vp_per_min_agency` and `spatial_accuracy_agency` is equal than 0\n", + "# and still has 2+ names\n", + "orgs_agg = (\n", + " orgs_with_2_names_df.groupby([\"organization_name\"])\n", + " .agg({\"name\": \"nunique\"})\n", + " .reset_index()\n", + " .rename(columns={\"name\": \"n_names\"})\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "id": "60b44b84-f8f3-45c5-9359-b7c9f33d0931", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df = pd.merge(\n", + " orgs_with_2_names_df, orgs_agg, on=\"organization_name\", how=\"left\"\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "id": "43b76ab4-e9ec-42f7-82d7-f7858cd57714", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df2 = orgs_with_2_names_df[\n", + " (orgs_with_2_names_df.vp_per_min_agency > 0)\n", + " & (orgs_with_2_names_df.spatial_accuracy_agency > 0)\n", + " & (orgs_with_2_names_df.n_names > 1)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 82, + "id": "5802ec42-1f84-4394-b51d-aa1d421f60b6", + "metadata": {}, + "outputs": [], + "source": [ + "service_date = operator_df2.service_date.max()" + ] + }, + { + "cell_type": "code", + "execution_count": 83, + "id": "da01f08f-cb0e-4bb0-8cd7-815caeaa183d", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df3 = orgs_with_2_names_df2.loc[\n", + " orgs_with_2_names_df2.service_date == service_date\n", + "]" + ] + }, + { + "cell_type": "code", + "execution_count": 85, + "id": "2fead64c-43c6-4d2d-8f5e-4fac317dd6a9", + "metadata": {}, + "outputs": [], + "source": [ + "final_names = list(orgs_with_2_names_df3.organization_name.unique())" + ] + }, + { + "cell_type": "code", + "execution_count": 86, + "id": "98a411fb-9fa5-4235-8d9a-c133981e469d", + "metadata": {}, + "outputs": [], + "source": [ + "## Concat back\n", + "orgs_with_2_names_df = orgs_with_2_names_df.loc[~orgs_with_2_names_df.organization_name.isin(final_names)]" + ] + }, + { + "cell_type": "code", + "execution_count": 88, + "id": "08faaf57-13d2-4b5b-83cf-deabef711593", + "metadata": {}, + "outputs": [], + "source": [ + "final = pd.concat([orgs_with_2_names_df, orgs_with_2_names_df3])" + ] + }, + { + "cell_type": "code", + "execution_count": 91, + "id": "ef1fec0a-20c1-4467-8735-9712bd8c4e66", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", + " \n", + " \n", " \n", - " \n", - " \n", + " \n", " \n", " \n", " \n", - " \n", - " \n", + " \n", " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", + " \n", " \n", " \n", " \n", - " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -3736,189 +3268,32 @@ "" ], "text/plain": [ - " service_date\n", - "caltrans_district organization_name name \n", - "01 - Eureka City of Eureka Humboldt Schedule 1\n", - " Lake Transit Authority Lake Schedule 1\n", - " Mendocino Transit Authority Mendocino Schedule 1\n", - " Redwood Coast Transit Authority Redwood Coast Schedule 1\n", - " Redwood Coast Schedulel 1\n", - "02 - Redding Lassen Transit Service Agency Lassen Schedule 1\n", - " Modoc Transportation Agency Sage Stage Schedule 1\n", - " Plumas Transit Systems Plumas Schedule 1\n", - " Shasta County Redding Schedule 1\n", - " Siskiyou County Siskiyou Schedule 1\n", - " Tehama County Tehama Schedule 1\n", - " Trinity County Trinity Schedule 1\n", - "03 - Marysville Butte County Association of Governments B-Line Schedule 1\n", - " City of Auburn Auburn Schedule 1\n", - " City of Elk Grove Elk Grove Schedule 1\n", - " City of Rancho Cordova Sacramento Schedule 1\n", - " City of Roseville Roseville Schedule 1\n", - " Roseville Transit GMV Schedule 1\n", - " El Dorado County Transit Authority El Dorado Schedule 1\n", - " Glenn County Glenn Schedule 1\n", - " Nevada County Nevada County Schedule 1\n", - " North Lake Tahoe Express TART, North Lake Tahoe Schedule 1\n", - " Placer County Placer Schedule 1\n", - " Sacramento County South County Transit Link Schedule 1\n", - " Tahoe Transportation District Tahoe Transportation District GMV Schedule 1\n", - " Tahoe Transportation District Schedule 1\n", - " University of California, Davis Unitrans Schedule 1\n", - " Yolo County Transportation District Yolobus Schedule 1\n", - " Yuba-Sutter Transit Authority Yuba-Sutter Schedule 1\n", - "04 - Oakland Alameda-Contra Costa Transit District Bay Area 511 AC Transit Schedule 1\n", - " Capitol Corridor Joint Powers Authority Bay Area 511 Capitol Corridor Schedule 1\n", - " Central Contra Costa Transit Authority Bay Area 511 County Connection Schedule 1\n", - " City and County of San Francisco Bay Area 511 Muni Schedule 1\n", - " City of Fairfield Bay Area 511 Fairfield and Suisun Transit Schedule 1\n", - " City of Menlo Park Bay Area 511 Commute.org Schedule 1\n", - " City of Mountain View Bay Area 511 Mountain View Community Shuttle Schedule 1\n", - " City of Petaluma Bay Area 511 Petaluma Schedule 1\n", - " City of Rio Vista Bay Area 511 Rio Vista Delta Breeze Schedule 1\n", - " City of Santa Rosa Bay Area 511 Santa Rosa CityBus Schedule 1\n", - " City of South San Francisco Bay Area 511 South San Francisco Shuttle Schedule 1\n", - " City of Union City Bay Area 511 Union City Transit Schedule 1\n", - " City of Vacaville Bay Area 511 Vacaville City Coach Schedule 1\n", - " Dumbarton Bridge Regional Operations Consortium Bay Area 511 Dumbarton Express Schedule 1\n", - " Eastern Contra Costa Transit Authority Bay Area 511 Tri Delta Schedule 1\n", - " Emeryville Transportation Management Agency Bay Area 511 Emery Go-Round Schedule 1\n", - " Golden Gate Bridge, Highway and Transportation District Bay Area 511 Golden Gate Transit Schedule 1\n", - " Livermore-Amador Valley Transit Authority Bay Area 511 Tri-Valley Wheels Schedule 1\n", - " Marin County Transit District Bay Area 511 Marin Schedule 1\n", - " Mission Bay Transportation Management Agency Bay Area 511 Mission Bay Schedule 1\n", - " Mission Bay Schedule 1\n", - " Mountain View Transportation Management Association Bay Area 511 MVGO Schedule 1\n", - " Napa Valley Transportation Authority Bay Area 511 Vine Transit Schedule 1\n", - " Presidio Trust Bay Area 511 PresidiGo Schedule 1\n", - " PresidiGo Schedule 1\n", - " San Francisco Bay Area Rapid Transit District Bay Area 511 BART Schedule 1\n", - " San Mateo County Transit District Bay Area 511 SamTrans Schedule 1\n", - " Santa Clara Valley Transportation Authority Bay Area 511 Santa Clara Transit Schedule 1\n", - " Solano County Transit Bay Area 511 SolTrans Schedule 1\n", - " Sonoma County Bay Area 511 Sonoma County Transit Schedule 1\n", - " Stanford University Stanford Schedule 1\n", - " University of California, Berkeley Bear Schedule 1\n", - " Western Contra Costa Transit Authority Bay Area 511 WestCAT Schedule 1\n", - "05 - San Luis Obispo City of Guadalupe Guadalupe Flyer Schedule 1\n", - " City of San Luis Obispo SLO Peak Transit Schedule 1\n", - " SLO Schedule 1\n", - " City of Santa Maria Santa Maria Schedule 1\n", - " City of Solvang Santa Ynez Mecatran Schedule 1\n", - " Monterey-Salinas Transit Monterey Salinas Schedule 1\n", - " San Benito County Local Transportation Authority County Express Schedule 1\n", - " San Luis Obispo Regional Transit Authority SLORTA Schedule 1\n", - " Santa Barbara County Association of Governments Clean Air Express Schedule 1\n", - " Santa Barbara Metropolitan Transit District SBMTD Schedule 1\n", - " Santa Cruz Metropolitan Transit District Santa Cruz Schedule 1\n", - " University of California, Santa Cruz UCSC Schedule 1\n", - "06 - Fresno City of Arvin Arvin Schedule 1\n", - " City of Clovis Clovis Schedule 1\n", - " City of Delano Delano Schedule 1\n", - " City of Fresno Fresno Schedule 1\n", - " City of Madera Madera Metro Schedule 1\n", - " City of Visalia Visalia Schedule 1\n", - " Fresno County Rural Transit Agency Fresno County Schedule 1\n", - " Golden Empire Transit District GET Schedule 1\n", - " Kern County Kern Schedule 1\n", - " Kings County Area Public Transit Agency Kings Schedule 1\n", - " Madera County Madera County Connection Schedule 1\n", - " Tulare County Regional Transit Agency TIME GMV Schedule 1\n", - "07 - Los Angeles Antelope Valley Transit Authority Antelope Valley Transit Authority Schedule 1\n", - " City of Alhambra Alhambra Schedule 1\n", - " City of Arcadia Arcadia Schedule 1\n", - " City of Avalon Avalon Schedule 1\n", - " City of Baldwin Park Baldwin Park Schedule 1\n", - " City of Bell La Campana Schedule 1\n", - " City of Bell Gardens Bell Gardens Schedule 1\n", - " City of Bellflower Bellflower Bus Schedule 1\n", - " City of Burbank Burbank Schedule 1\n", - " City of Calabasas Calabasas Schedule 1\n", - " City of Cerritos Cerritos on Wheels Website Schedule 1\n", - " City of Commerce Commerce Schedule 1\n", - " City of Cudahy Cudahy Schedule 1\n", - " City of Culver City Culver City Schedule 1\n", - " City of Downey DowneyLINK GMV Schedule 1\n", - " DowneyLINK Schedule 1\n", - " City of Duarte Foothill Schedule 1\n", - " City of El Monte El Monte Schedule 1\n", - " City of El Segundo El Segundo Schedule 1\n", - " City of Gardena G Trans Schedule 1\n", - " City of Glendale Glendale Schedule 1\n", - " City of Glendora Glendora Schedule 1\n", - " City of Huntington Park Huntington Schedule 1\n", - " City of Inglewood Inglewood Schedule 1\n", - " City of La Puente La Puente Schedule 1\n", - " City of Lawndale Lawndale Beat GMV Schedule 1\n", - " Lawndale Schedule 1\n", - " City of Los Angeles LA DOT Schedule 1\n", - " City of Lynwood Lynwood Schedule 1\n", - " City of Maywood Maywood Schedule 1\n", - " City of Monterey Park Spirit Bus Schedule 1\n", - " City of Norwalk Norwalk Avail Schedule 1\n", - " City of Ojai VCTC GMV Schedule 1\n", - " City of Pasadena Pasadena Schedule 1\n", - " City of Redondo Beach Beach Cities GMV Schedule 1\n", - " City of Rosemead Rosemead Schedule 1\n", - " City of Santa Clarita Santa Clarita Schedule 1\n", - " City of Santa Monica Big Blue Bus Schedule 1\n", - " City of South Gate Get Around Town Express Schedule 1\n", - " City of Torrance Torrance Schedule 1\n", - " City of West Covina Go West Schedule 1\n", - " City of West Hollywood WeHo Schedule 1\n", - " Greyhound Flixbus Schedule 1\n", - " Long Beach Transit Long Beach Schedule 1\n", - " Los Angeles County LADPW Schedule 1\n", - " Los Angeles County Metropolitan Transportation Authority LA Metro Bus Schedule 1\n", - " LA Metro Rail Schedule 1\n", - " Los Angeles World Airports LAX FlyAway Schedule 1\n", - " Palos Verdes Peninsula Transit Authority Palos Verdes PTA Schedule 1\n", - " University of California, Los Angeles BruinBus Schedule 1\n", - "08 - San Bernardino Basin Transit Basin Transit GMV Schedule 1\n", - " Morongo Basin Schedule 1\n", - " City of Banning Banning Pass Schedule 1\n", - " City of Beaumont Beaumont Pass Schedule 1\n", - " Beaumont Transit Schedule 1\n", - " City of Corona Corona Schedule 1\n", - " City of Needles Needles Schedule 1\n", - " Mountain Area Regional Transit Authority Mountain Transit GMV Schedule 1\n", - " Mountain Transit Schedule 1\n", - " OmniTrans OmniTrans Schedule 1\n", - " Palo Verde Valley Transit Agency Desert Roadrunner GMV Schedule 1\n", - " Desert Roadrunner Schedule 1\n", - " Riverside Transit Agency Riverside Schedule 1\n", - " Victor Valley Transit Authority Victor Valley GMV Schedule 1\n", - " Victor Valley Schedule 1\n", - "09 - Bishop Eastern Sierra Transit Authority Eastern Sierra Schedule 1\n", - "10 - Stockton Amador Regional Transit System Amador Schedule 1\n", - " Calaveras Transit Agency Calaveras Schedule 1\n", - " City of Escalon eTrans Schedule 1\n", - " City of Lodi Grapeline Schedule 1\n", - " City of Manteca Manteca Schedule 1\n", - " City of Ripon Blossom Express Schedule 1\n", - " City of Tracy Tracy Schedule 1\n", - " City of Turlock Turlock Schedule 1\n", - " San Joaquin Regional Transit District San Joaquin Schedule 1\n", - " Stanislaus Regional Transit Authority StanRTA Schedule 1\n", - " Transit Joint Powers Authority for Merced County Merced GMV Schedule 1\n", - " Merced Schedule 1\n", - " Yosemite Area Regional Transportation System YARTS Schedule 1\n", - "11 - San Diego Imperial County Transportation Commission Imperial Valley Transit Schedule 1\n", - " North County Transit District North County Schedule 1\n", - " San Diego Metropolitan Transit System San Diego Schedule 1\n", - " Yuma County Intergovernmental Public Transportation Authority Yuma Schedule 1\n", - "12 - Irvine City of Laguna Beach Laguna Beach Schedule 1\n", - " Orange County Transportation Authority OCTA Schedule 1\n", - " University of California, Irvine Anteater Express Schedule 1" + " name\n", + "organization_name \n", + "Basin Transit 1\n", + "City of Beaumont 1\n", + "Mountain Area Regional Transit Authority 2\n", + "Palo Verde Valley Transit Agency 1\n", + "Victor Valley Transit Authority 1" ] }, - "execution_count": 26, + "execution_count": 91, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "operator_df.groupby([\"caltrans_district\",\"organization_name\",\"name\"]).agg({\"service_date\":\"nunique\"})" + "final.groupby(['organization_name']).agg({\"name\":\"nunique\"})" + ] + }, + { + "cell_type": "code", + "execution_count": 92, + "id": "7fdca3a5-0e96-4087-8a24-77566855c449", + "metadata": {}, + "outputs": [], + "source": [ + "operator_df2 = pd.concat([operator_df2, final])" ] } ], diff --git a/gtfs_digest/district_report.ipynb b/gtfs_digest/district_report.ipynb index cc85b972a..b8d87b291 100644 --- a/gtfs_digest/district_report.ipynb +++ b/gtfs_digest/district_report.ipynb @@ -90,6 +90,163 @@ ").reset_index(drop=True)" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "e733cb10-3185-4468-9ebe-1c2cb854cd21", + "metadata": {}, + "outputs": [], + "source": [ + "# De duplicate\n", + "# First find any organizations_names with more than 2 names per \n", + "orgs_agg = (\n", + " operator_df.groupby([\"caltrans_district\", \"organization_name\"])\n", + " .agg({\"name\": \"nunique\"})\n", + " .reset_index()\n", + ")\n", + "orgs_agg2 = orgs_agg.loc[orgs_agg.name > 1]\n", + "orgs_with_2_names = list(orgs_agg2.organization_name.unique())" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "f2197f14-0623-46b4-bdda-a6da1581a9d2", + "metadata": {}, + "outputs": [], + "source": [ + "# Delete out these organizations from the original df so we can manipulate them.\n", + "operator_df2 = operator_df.loc[\n", + " ~operator_df.organization_name.isin(orgs_with_2_names)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e7ee27ca-fafc-41a5-b15c-eead1c11785f", + "metadata": {}, + "outputs": [], + "source": [ + "# Filter for these organizations with more than 2 names in their own df.\n", + "orgs_with_2_names_df = operator_df.loc[\n", + " operator_df.organization_name.isin(orgs_with_2_names)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "ad8f31e7-f7b0-4f8e-9ee8-6479ea1af654", + "metadata": {}, + "outputs": [], + "source": [ + "three_month_reference = operator_df2[\"service_date\"].max() - pd.DateOffset(\n", + " months=3\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "9d2e2807-801a-48f5-9933-3adaad4ebfef", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df = orgs_with_2_names_df[\n", + " orgs_with_2_names_df[\"service_date\"] >= three_month_reference\n", + "]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "c93e5f3d-1b87-495d-a63e-2454d7089754", + "metadata": {}, + "outputs": [], + "source": [ + "# Filter out any rows in which `vp_per_min_agency` and `spatial_accuracy_agency` is equal than 0\n", + "# and still has 2+ names\n", + "orgs_agg = (\n", + " orgs_with_2_names_df.groupby([\"organization_name\"])\n", + " .agg({\"name\": \"nunique\"})\n", + " .reset_index()\n", + " .rename(columns={\"name\": \"n_names\"})\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "a81b77e8-90dd-4626-9077-45cb87ea2d0f", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df = pd.merge(\n", + " orgs_with_2_names_df, orgs_agg, on=\"organization_name\", how=\"left\"\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4f0eccf0-3731-4f93-9d7d-c4cc54617bbb", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df2 = orgs_with_2_names_df[\n", + " (orgs_with_2_names_df.vp_per_min_agency > 0)\n", + " & (orgs_with_2_names_df.spatial_accuracy_agency > 0)\n", + " & (orgs_with_2_names_df.n_names > 1)\n", + "].reset_index(drop=True)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "15712b8e-f547-4668-8f77-c9912207ef7b", + "metadata": {}, + "outputs": [], + "source": [ + "# Keep rows that meet service_date\n", + "service_date = operator_df2.service_date.max()\n", + "orgs_with_2_names_df3 = orgs_with_2_names_df2.loc[\n", + " orgs_with_2_names_df2.service_date == service_date\n", + "]\n", + "final_names = list(orgs_with_2_names_df3.organization_name.unique())" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "67b1e0cd-7ecf-43ca-80eb-b9139f7f49f8", + "metadata": {}, + "outputs": [], + "source": [ + "## Concat back\n", + "orgs_with_2_names_df = orgs_with_2_names_df.loc[~orgs_with_2_names_df.organization_name.isin(final_names)]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d591e85f-18f4-4613-8330-c1c6978c0507", + "metadata": {}, + "outputs": [], + "source": [ + "orgs_with_2_names_df_final = pd.concat([orgs_with_2_names_df, orgs_with_2_names_df3])" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "fcf1647b-892e-4323-8b69-e7bed38951b7", + "metadata": {}, + "outputs": [], + "source": [ + "operator_df2 = pd.concat([operator_df2, orgs_with_2_names_df_final])" + ] + }, { "cell_type": "markdown", "id": "41f0a970-4646-4147-a596-d41d15517127", @@ -110,7 +267,7 @@ "outputs": [], "source": [ "district_summary = _report_utils.district_stats(\n", - " operator_df, \n", + " operator_df2, \n", " \"caltrans_district\"\n", ")" ] @@ -174,7 +331,7 @@ "metadata": {}, "outputs": [], "source": [ - "operators_in_district = operator_df.schedule_gtfs_dataset_key.unique()" + "operators_in_district = operator_df2.name.unique()" ] }, { @@ -186,7 +343,7 @@ "source": [ "operator_route_gdf = gpd.read_parquet(\n", " f\"{RT_SCHED_GCS}{OPERATOR_ROUTE}.parquet\",\n", - " filters = [[\"schedule_gtfs_dataset_key\", \"in\", operators_in_district]],\n", + " filters = [[\"name\", \"in\", operators_in_district]],\n", " columns = [\"name\", \"service_date\", \n", " \"route_combined_name\", \"geometry\"]\n", ").sort_values(\n", @@ -245,9 +402,9 @@ "metadata": {}, "outputs": [], "source": [ - "gtfs_table_df = operator_df[\n", + "gtfs_table_df = operator_df2[\n", " shared_cols + gtfs_service_cols\n", - "].pipe(_report_utils.replace_column_names)" + "].pipe(_report_utils.replace_column_names).reset_index(drop = True)" ] }, { diff --git a/portfolio/district_digest/district_01-eureka/00__district_report__district_01-eureka.ipynb b/portfolio/district_digest/district_01-eureka/00__district_report__district_01-eureka.ipynb index eb8c0923a..72ea36b38 100644 --- a/portfolio/district_digest/district_01-eureka/00__district_report__district_01-eureka.ipynb +++ b/portfolio/district_digest/district_01-eureka/00__district_report__district_01-eureka.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3a19de1265d7652de69f576b2d45310c12c2f0280c5f55226e295d5dfd2336ba -size 3058190 +oid sha256:e4f38125d1c7504a6818aeee49cf8dd139a4663f92a31d0df3f4eaa4ccd46ca5 +size 3383271 diff --git a/portfolio/district_digest/district_02-redding/00__district_report__district_02-redding.ipynb b/portfolio/district_digest/district_02-redding/00__district_report__district_02-redding.ipynb index 70a5d92ee..a27f76700 100644 --- a/portfolio/district_digest/district_02-redding/00__district_report__district_02-redding.ipynb +++ b/portfolio/district_digest/district_02-redding/00__district_report__district_02-redding.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d399c010dc9f2f6b29c746be584a7da20b7f70a8b1f0e61960052a180c5f2cb6 -size 2196438 +oid sha256:638796323ef91cdd95636cf3d24ce98360ed79fb2bdef488f856f7a176328110 +size 2409190 diff --git a/portfolio/district_digest/district_03-marysville/00__district_report__district_03-marysville.ipynb b/portfolio/district_digest/district_03-marysville/00__district_report__district_03-marysville.ipynb index 42888c07f..74afa9b7a 100644 --- a/portfolio/district_digest/district_03-marysville/00__district_report__district_03-marysville.ipynb +++ b/portfolio/district_digest/district_03-marysville/00__district_report__district_03-marysville.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:44d620ba83798948fe9e4d24712e567d8ae21671228f232469938d47a084c7d6 -size 8931952 +oid sha256:f27951dcff9fb314b2e9bd1fb7d7e9d61014157726c77c25280fcd0d5b286362 +size 9758272 diff --git a/portfolio/district_digest/district_04-oakland/00__district_report__district_04-oakland.ipynb b/portfolio/district_digest/district_04-oakland/00__district_report__district_04-oakland.ipynb index ca33431e5..c800303d1 100644 --- a/portfolio/district_digest/district_04-oakland/00__district_report__district_04-oakland.ipynb +++ b/portfolio/district_digest/district_04-oakland/00__district_report__district_04-oakland.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b868617455076f7599c2a268ede9aa2843ffe42da25ad1ac5e908e2268319daa -size 22984087 +oid sha256:ea337e8935bb4e79ca0ea18183bc35da5b1a2bad6b1ddc0664e9b9a9865b9d73 +size 24848333 diff --git a/portfolio/district_digest/district_05-san-luis-obispo/00__district_report__district_05-san-luis-obispo.ipynb b/portfolio/district_digest/district_05-san-luis-obispo/00__district_report__district_05-san-luis-obispo.ipynb index 224ff6cf8..f4bbb38e2 100644 --- a/portfolio/district_digest/district_05-san-luis-obispo/00__district_report__district_05-san-luis-obispo.ipynb +++ b/portfolio/district_digest/district_05-san-luis-obispo/00__district_report__district_05-san-luis-obispo.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0920550efff33a500f500f0275e29c1e0bc9cd594d161efa7d648c0689fefdd5 -size 7094247 +oid sha256:ef75f27b701b43af1b9e4dd762f3b6fcc29683401e1965db94e664e624de297d +size 7935833 diff --git a/portfolio/district_digest/district_06-fresno/00__district_report__district_06-fresno.ipynb b/portfolio/district_digest/district_06-fresno/00__district_report__district_06-fresno.ipynb index 39b6c766d..2618e6adc 100644 --- a/portfolio/district_digest/district_06-fresno/00__district_report__district_06-fresno.ipynb +++ b/portfolio/district_digest/district_06-fresno/00__district_report__district_06-fresno.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:759efcafdf9da6fca5f2440b8a6d154f791274e3aeb41c51e29500bd583c3371 -size 2435043 +oid sha256:fd49ba753c562a4c3794170526a166812aa7a57175f5c9d6b19f287e2da1f3ee +size 2446362 diff --git a/portfolio/district_digest/district_07-los-angeles/00__district_report__district_07-los-angeles.ipynb b/portfolio/district_digest/district_07-los-angeles/00__district_report__district_07-los-angeles.ipynb index a0922730c..6989f791f 100644 --- a/portfolio/district_digest/district_07-los-angeles/00__district_report__district_07-los-angeles.ipynb +++ b/portfolio/district_digest/district_07-los-angeles/00__district_report__district_07-los-angeles.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dd83129f0cb993409bb388a1b67bbda7894448ef34d4860352cdba5af13750ea -size 20131435 +oid sha256:2ba3f589959eed7fcc501235e1786f960777a3e698e0db1263334be03695037e +size 20510931 diff --git a/portfolio/district_digest/district_08-san-bernardino/00__district_report__district_08-san-bernardino.ipynb b/portfolio/district_digest/district_08-san-bernardino/00__district_report__district_08-san-bernardino.ipynb index 0bb651e74..34c96eaac 100644 --- a/portfolio/district_digest/district_08-san-bernardino/00__district_report__district_08-san-bernardino.ipynb +++ b/portfolio/district_digest/district_08-san-bernardino/00__district_report__district_08-san-bernardino.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:14a004a579661a93750b26f5527ad8d564e5bb0f17fed8ae212942b1dd226361 -size 11568013 +oid sha256:597dd9b251e82ad9b803a0501b70adbce344825cccd45e97c90fd82eb384ba0f +size 9123984 diff --git a/portfolio/district_digest/district_09-bishop/00__district_report__district_09-bishop.ipynb b/portfolio/district_digest/district_09-bishop/00__district_report__district_09-bishop.ipynb index 0c0b8fa78..eb6c34592 100644 --- a/portfolio/district_digest/district_09-bishop/00__district_report__district_09-bishop.ipynb +++ b/portfolio/district_digest/district_09-bishop/00__district_report__district_09-bishop.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:951aa2eab906f4f8df582e9dededd2ed35c6e0676d19562e4cb8ac62bc982ffd -size 524230 +oid sha256:f47c23275dcb36370f90a2a6b55b3139712f5b75236b6801a032e7d5ca240870 +size 535551 diff --git a/portfolio/district_digest/district_10-stockton/00__district_report__district_10-stockton.ipynb b/portfolio/district_digest/district_10-stockton/00__district_report__district_10-stockton.ipynb index 90a205fe4..c45ac8986 100644 --- a/portfolio/district_digest/district_10-stockton/00__district_report__district_10-stockton.ipynb +++ b/portfolio/district_digest/district_10-stockton/00__district_report__district_10-stockton.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:71eaae7d233dde59dc8aa72b2a7e81f77e9e4710897c75f2daa435a6e6d1ca8f -size 4908640 +oid sha256:ce21c1235e8d1241da5399a769113713133f76d713fb09b48b6c547d9d9e0104 +size 5015975 diff --git a/portfolio/district_digest/district_11-san-diego/00__district_report__district_11-san-diego.ipynb b/portfolio/district_digest/district_11-san-diego/00__district_report__district_11-san-diego.ipynb index d389c2b49..822391129 100644 --- a/portfolio/district_digest/district_11-san-diego/00__district_report__district_11-san-diego.ipynb +++ b/portfolio/district_digest/district_11-san-diego/00__district_report__district_11-san-diego.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9b78e58cccb3746f854ede03cfd00ebc247e5ffce0987ee3e22709a5ae8f2143 -size 2233146 +oid sha256:f6eb0c825adac31b49c365b9147c483815ad86521e0c0b0b436907a7c2bfa527 +size 2333298 diff --git a/portfolio/district_digest/district_12-irvine/00__district_report__district_12-irvine.ipynb b/portfolio/district_digest/district_12-irvine/00__district_report__district_12-irvine.ipynb index baa4436db..eff0e278a 100644 --- a/portfolio/district_digest/district_12-irvine/00__district_report__district_12-irvine.ipynb +++ b/portfolio/district_digest/district_12-irvine/00__district_report__district_12-irvine.ipynb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b9b07af82db69103c9845ac737b9b8650e3227bdfac98944ebc85851071a6908 -size 2023787 +oid sha256:7bcb5f82a29b4f109f8e0edcdef522bad9683d2a47c56e4076f0b978093ebeeb +size 2336443
name
North County Transit DistrictNorth County Schedule1organization_name
San Diego Metropolitan Transit SystemSan Diego ScheduleBasin Transit1
Yuma County Intergovernmental Public Transportation AuthorityYuma ScheduleCity of Beaumont1
12 - IrvineCity of Laguna BeachLaguna Beach Schedule1Mountain Area Regional Transit Authority2
Orange County Transportation AuthorityOCTA SchedulePalo Verde Valley Transit Agency1
University of California, IrvineAnteater Express ScheduleVictor Valley Transit Authority1