Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 45 additions & 31 deletions plots/foliumChoroplethMap.html

Large diffs are not rendered by default.

234 changes: 218 additions & 16 deletions tutorials/Python_PreReq_Notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 7,
"id": "52550d58",
"metadata": {
"ExecuteTime": {
Expand Down Expand Up @@ -185,7 +185,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 8,
"id": "bbd9bd35",
"metadata": {
"ExecuteTime": {
Expand Down Expand Up @@ -222,7 +222,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 9,
"id": "afb62526",
"metadata": {
"ExecuteTime": {
Expand All @@ -240,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 10,
"id": "14395028",
"metadata": {
"ExecuteTime": {
Expand All @@ -256,7 +256,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 11,
"id": "613317b5",
"metadata": {
"ExecuteTime": {
Expand Down Expand Up @@ -349,10 +349,209 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"id": "a3865f8a",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>VendorID</th>\n",
" <th>tpep_pickup_datetime</th>\n",
" <th>tpep_dropoff_datetime</th>\n",
" <th>passenger_count</th>\n",
" <th>trip_distance</th>\n",
" <th>RatecodeID</th>\n",
" <th>store_and_fwd_flag</th>\n",
" <th>PULocationID</th>\n",
" <th>DOLocationID</th>\n",
" <th>payment_type</th>\n",
" <th>fare_amount</th>\n",
" <th>extra</th>\n",
" <th>mta_tax</th>\n",
" <th>tip_amount</th>\n",
" <th>tolls_amount</th>\n",
" <th>improvement_surcharge</th>\n",
" <th>total_amount</th>\n",
" <th>congestion_surcharge</th>\n",
" <th>Airport_fee</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>2964619</th>\n",
" <td>2</td>\n",
" <td>2024-01-31 23:45:59</td>\n",
" <td>2024-01-31 23:54:36</td>\n",
" <td>NaN</td>\n",
" <td>3.18</td>\n",
" <td>NaN</td>\n",
" <td>None</td>\n",
" <td>107</td>\n",
" <td>263</td>\n",
" <td>0</td>\n",
" <td>15.77</td>\n",
" <td>0.00</td>\n",
" <td>0.5</td>\n",
" <td>2.00</td>\n",
" <td>0.00</td>\n",
" <td>1.0</td>\n",
" <td>21.77</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2964620</th>\n",
" <td>1</td>\n",
" <td>2024-01-31 23:13:07</td>\n",
" <td>2024-01-31 23:27:52</td>\n",
" <td>NaN</td>\n",
" <td>4.00</td>\n",
" <td>NaN</td>\n",
" <td>None</td>\n",
" <td>114</td>\n",
" <td>236</td>\n",
" <td>0</td>\n",
" <td>18.40</td>\n",
" <td>1.00</td>\n",
" <td>0.5</td>\n",
" <td>2.34</td>\n",
" <td>0.00</td>\n",
" <td>1.0</td>\n",
" <td>25.74</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2964621</th>\n",
" <td>2</td>\n",
" <td>2024-01-31 23:19:00</td>\n",
" <td>2024-01-31 23:38:00</td>\n",
" <td>NaN</td>\n",
" <td>3.33</td>\n",
" <td>NaN</td>\n",
" <td>None</td>\n",
" <td>211</td>\n",
" <td>25</td>\n",
" <td>0</td>\n",
" <td>19.97</td>\n",
" <td>0.00</td>\n",
" <td>0.5</td>\n",
" <td>0.00</td>\n",
" <td>0.00</td>\n",
" <td>1.0</td>\n",
" <td>23.97</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2964622</th>\n",
" <td>2</td>\n",
" <td>2024-01-31 23:07:23</td>\n",
" <td>2024-01-31 23:25:14</td>\n",
" <td>NaN</td>\n",
" <td>3.06</td>\n",
" <td>NaN</td>\n",
" <td>None</td>\n",
" <td>107</td>\n",
" <td>13</td>\n",
" <td>0</td>\n",
" <td>23.88</td>\n",
" <td>0.00</td>\n",
" <td>0.5</td>\n",
" <td>5.58</td>\n",
" <td>0.00</td>\n",
" <td>1.0</td>\n",
" <td>33.46</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2964623</th>\n",
" <td>1</td>\n",
" <td>2024-01-31 23:58:25</td>\n",
" <td>2024-02-01 00:13:30</td>\n",
" <td>NaN</td>\n",
" <td>8.10</td>\n",
" <td>NaN</td>\n",
" <td>None</td>\n",
" <td>138</td>\n",
" <td>75</td>\n",
" <td>0</td>\n",
" <td>32.40</td>\n",
" <td>7.75</td>\n",
" <td>0.5</td>\n",
" <td>7.29</td>\n",
" <td>6.94</td>\n",
" <td>1.0</td>\n",
" <td>55.88</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" VendorID tpep_pickup_datetime tpep_dropoff_datetime passenger_count \\\n",
"2964619 2 2024-01-31 23:45:59 2024-01-31 23:54:36 NaN \n",
"2964620 1 2024-01-31 23:13:07 2024-01-31 23:27:52 NaN \n",
"2964621 2 2024-01-31 23:19:00 2024-01-31 23:38:00 NaN \n",
"2964622 2 2024-01-31 23:07:23 2024-01-31 23:25:14 NaN \n",
"2964623 1 2024-01-31 23:58:25 2024-02-01 00:13:30 NaN \n",
"\n",
" trip_distance RatecodeID store_and_fwd_flag PULocationID \\\n",
"2964619 3.18 NaN None 107 \n",
"2964620 4.00 NaN None 114 \n",
"2964621 3.33 NaN None 211 \n",
"2964622 3.06 NaN None 107 \n",
"2964623 8.10 NaN None 138 \n",
"\n",
" DOLocationID payment_type fare_amount extra mta_tax tip_amount \\\n",
"2964619 263 0 15.77 0.00 0.5 2.00 \n",
"2964620 236 0 18.40 1.00 0.5 2.34 \n",
"2964621 25 0 19.97 0.00 0.5 0.00 \n",
"2964622 13 0 23.88 0.00 0.5 5.58 \n",
"2964623 75 0 32.40 7.75 0.5 7.29 \n",
"\n",
" tolls_amount improvement_surcharge total_amount \\\n",
"2964619 0.00 1.0 21.77 \n",
"2964620 0.00 1.0 25.74 \n",
"2964621 0.00 1.0 23.97 \n",
"2964622 0.00 1.0 33.46 \n",
"2964623 6.94 1.0 55.88 \n",
"\n",
" congestion_surcharge Airport_fee \n",
"2964619 NaN NaN \n",
"2964620 NaN NaN \n",
"2964621 NaN NaN \n",
"2964622 NaN NaN \n",
"2964623 NaN NaN "
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"\n",
Expand Down Expand Up @@ -458,10 +657,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 15,
"id": "1b5a59dc",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[92m\u001b[1mSuccess! Your environment is set up and you are ready for the first workshop.\u001b[0m\n"
]
}
],
"source": [
"import base64\n",
"import traceback\n",
Expand Down Expand Up @@ -489,7 +696,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "myenv",
"language": "python",
"name": "python3"
},
Expand All @@ -503,7 +710,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.12.5"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down Expand Up @@ -564,11 +771,6 @@
"_Feature"
],
"window_display": false
},
"vscode": {
"interpreter": {
"hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49"
}
}
},
"nbformat": 4,
Expand Down
Loading