-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
627d5d1
commit 54ae426
Showing
3 changed files
with
227 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,202 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import pandas as pd \n", | ||
"\n", | ||
"data = pd.read_parquet(\"/home/kobina/ML/Projects/Hourly-Divvy-Trip-Predictor/data/geographical/indexer_two/start_replaced_missing_names_and_ids.parquet\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"metadata": {}, | ||
"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>start_lat</th>\n", | ||
" <th>start_lng</th>\n", | ||
" <th>start_station_id</th>\n", | ||
" <th>start_station_name</th>\n", | ||
" <th>start_hour</th>\n", | ||
" </tr>\n", | ||
" </thead>\n", | ||
" <tbody>\n", | ||
" <tr>\n", | ||
" <th>0</th>\n", | ||
" <td>41.903267</td>\n", | ||
" <td>-87.634737</td>\n", | ||
" <td>KA1504000135</td>\n", | ||
" <td>Wells St & Elm St</td>\n", | ||
" <td>2024-01-12 15:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>1</th>\n", | ||
" <td>41.902937</td>\n", | ||
" <td>-87.634440</td>\n", | ||
" <td>KA1504000135</td>\n", | ||
" <td>Wells St & Elm St</td>\n", | ||
" <td>2024-01-08 15:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>2</th>\n", | ||
" <td>41.902951</td>\n", | ||
" <td>-87.634470</td>\n", | ||
" <td>KA1504000135</td>\n", | ||
" <td>Wells St & Elm St</td>\n", | ||
" <td>2024-01-27 12:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>3</th>\n", | ||
" <td>41.884295</td>\n", | ||
" <td>-87.633963</td>\n", | ||
" <td>TA1305000030</td>\n", | ||
" <td>Wells St & Randolph St</td>\n", | ||
" <td>2024-01-29 16:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>4</th>\n", | ||
" <td>41.948797</td>\n", | ||
" <td>-87.675278</td>\n", | ||
" <td>13253</td>\n", | ||
" <td>Lincoln Ave & Waveland Ave</td>\n", | ||
" <td>2024-01-31 05:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>...</th>\n", | ||
" <td>...</td>\n", | ||
" <td>...</td>\n", | ||
" <td>...</td>\n", | ||
" <td>...</td>\n", | ||
" <td>...</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>710716</th>\n", | ||
" <td>41.968466</td>\n", | ||
" <td>-87.674225</td>\n", | ||
" <td>TA1309000066</td>\n", | ||
" <td>Ravenswood Ave & Lawrence Ave</td>\n", | ||
" <td>2024-06-11 08:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>710717</th>\n", | ||
" <td>41.967121</td>\n", | ||
" <td>-87.679127</td>\n", | ||
" <td>TA1307000158</td>\n", | ||
" <td>Damen Ave & Leland Ave</td>\n", | ||
" <td>2024-06-24 11:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>710718</th>\n", | ||
" <td>41.967154</td>\n", | ||
" <td>-87.679091</td>\n", | ||
" <td>TA1307000158</td>\n", | ||
" <td>Damen Ave & Leland Ave</td>\n", | ||
" <td>2024-06-30 10:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>710719</th>\n", | ||
" <td>41.954404</td>\n", | ||
" <td>-87.647983</td>\n", | ||
" <td>TA1308000022</td>\n", | ||
" <td>Pine Grove Ave & Irving Park Rd</td>\n", | ||
" <td>2024-06-11 18:00:00</td>\n", | ||
" </tr>\n", | ||
" <tr>\n", | ||
" <th>710720</th>\n", | ||
" <td>41.968486</td>\n", | ||
" <td>-87.674196</td>\n", | ||
" <td>TA1309000066</td>\n", | ||
" <td>Ravenswood Ave & Lawrence Ave</td>\n", | ||
" <td>2024-06-15 15:00:00</td>\n", | ||
" </tr>\n", | ||
" </tbody>\n", | ||
"</table>\n", | ||
"<p>2392578 rows × 5 columns</p>\n", | ||
"</div>" | ||
], | ||
"text/plain": [ | ||
" start_lat start_lng start_station_id \\\n", | ||
"0 41.903267 -87.634737 KA1504000135 \n", | ||
"1 41.902937 -87.634440 KA1504000135 \n", | ||
"2 41.902951 -87.634470 KA1504000135 \n", | ||
"3 41.884295 -87.633963 TA1305000030 \n", | ||
"4 41.948797 -87.675278 13253 \n", | ||
"... ... ... ... \n", | ||
"710716 41.968466 -87.674225 TA1309000066 \n", | ||
"710717 41.967121 -87.679127 TA1307000158 \n", | ||
"710718 41.967154 -87.679091 TA1307000158 \n", | ||
"710719 41.954404 -87.647983 TA1308000022 \n", | ||
"710720 41.968486 -87.674196 TA1309000066 \n", | ||
"\n", | ||
" start_station_name start_hour \n", | ||
"0 Wells St & Elm St 2024-01-12 15:00:00 \n", | ||
"1 Wells St & Elm St 2024-01-08 15:00:00 \n", | ||
"2 Wells St & Elm St 2024-01-27 12:00:00 \n", | ||
"3 Wells St & Randolph St 2024-01-29 16:00:00 \n", | ||
"4 Lincoln Ave & Waveland Ave 2024-01-31 05:00:00 \n", | ||
"... ... ... \n", | ||
"710716 Ravenswood Ave & Lawrence Ave 2024-06-11 08:00:00 \n", | ||
"710717 Damen Ave & Leland Ave 2024-06-24 11:00:00 \n", | ||
"710718 Damen Ave & Leland Ave 2024-06-30 10:00:00 \n", | ||
"710719 Pine Grove Ave & Irving Park Rd 2024-06-11 18:00:00 \n", | ||
"710720 Ravenswood Ave & Lawrence Ave 2024-06-15 15:00:00 \n", | ||
"\n", | ||
"[2392578 rows x 5 columns]" | ||
] | ||
}, | ||
"execution_count": 2, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"data" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "src-ptrGecWl-py3.11", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.11.2" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters