Skip to content

Commit 05b454d

Browse files
committed
try to deploy portfolio
1 parent 62015f5 commit 05b454d

4 files changed

Lines changed: 1187 additions & 62 deletions

File tree

gtfs_digest/40_actransit.ipynb

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 2,
6+
"id": "c31ab45a-47c4-4e5d-8eb5-7b043340d99c",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"from functools import cache\n",
11+
"from pathlib import Path\n",
12+
"\n",
13+
"import pandas as pd\n",
14+
"import google.auth\n",
15+
"import geopandas as gpd\n",
16+
"\n",
17+
"from calitp_data_analysis.gcs_pandas import GCSPandas\n",
18+
"from calitp_data_analysis.sql import get_engine\n",
19+
"\n",
20+
"from shared_utils import bq_utils\n",
21+
"\n",
22+
"from update_vars import GTFS_DATA_DICT, file_name\n",
23+
"\n",
24+
"# Initialize credentials and DB engine\n",
25+
"credentials, project = google.auth.default()\n",
26+
"db_engine = get_engine()\n",
27+
"\n",
28+
"import _prep_crosswalk_ntd\n",
29+
"import _load_gtfs_data"
30+
]
31+
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": 3,
35+
"id": "912591c7-393d-47e2-a08f-1177e8d931b9",
36+
"metadata": {},
37+
"outputs": [],
38+
"source": [
39+
"@cache\n",
40+
"def gcs_pandas():\n",
41+
" return GCSPandas()"
42+
]
43+
},
44+
{
45+
"cell_type": "code",
46+
"execution_count": 4,
47+
"id": "0656e270-f9a7-49e4-bbf9-6e5fd63dde43",
48+
"metadata": {},
49+
"outputs": [],
50+
"source": [
51+
"pd.options.display.max_columns = 100\n",
52+
"pd.options.display.float_format = \"{:.2f}\".format\n",
53+
"pd.set_option(\"display.max_rows\", None)\n",
54+
"pd.set_option(\"display.max_colwidth\", None)"
55+
]
56+
},
57+
{
58+
"cell_type": "code",
59+
"execution_count": null,
60+
"id": "313000f3-cc81-4b7a-a92d-f5ef98d31539",
61+
"metadata": {},
62+
"outputs": [],
63+
"source": []
64+
}
65+
],
66+
"metadata": {
67+
"kernelspec": {
68+
"display_name": "Pyproject Local",
69+
"language": "python",
70+
"name": "pyproject_local_kernel"
71+
},
72+
"language_info": {
73+
"codemirror_mode": {
74+
"name": "ipython",
75+
"version": 3
76+
},
77+
"file_extension": ".py",
78+
"mimetype": "text/x-python",
79+
"name": "python",
80+
"nbconvert_exporter": "python",
81+
"pygments_lexer": "ipython3",
82+
"version": "3.11.10"
83+
}
84+
},
85+
"nbformat": 4,
86+
"nbformat_minor": 5
87+
}

0 commit comments

Comments
 (0)