Skip to content

Commit

Permalink
Update NJSP plots
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Oct 1, 2024
1 parent dc9f045 commit 8532871
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion njsp/data/year-type-county.csv
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ year,county,driver,passenger,cyclist,pedestrian,crashes
2023,Union,14,6,2,15,35
2023,Warren,7,1,0,3,11
2024,Atlantic,23,2,2,14,40
2024,Bergen,14,4,2,11,29
2024,Bergen,14,4,2,12,30
2024,Burlington,24,4,1,4,33
2024,Camden,13,3,0,13,29
2024,Cape May,4,0,0,0,4
Expand Down
68 changes: 34 additions & 34 deletions njsp/update-plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,19 @@
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13454</th>\n",
" <td>4</td>\n",
" <td>8</td>\n",
" <td>2024-09-26 19:35:00-04:00</td>\n",
" <th>13461</th>\n",
" <td>2</td>\n",
" <td>12</td>\n",
" <td>2024-09-27 00:03:00-04:00</td>\n",
" <td>1</td>\n",
" <td>&lt;NA&gt;</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>Ferry Ave</td>\n",
" <td>Ferry Ave</td>\n",
" <td>3</td>\n",
" <td>None</td>\n",
" <td>3</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13459</th>\n",
Expand Down Expand Up @@ -337,7 +337,7 @@
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>9432 rows \u00d7 12 columns</p>\n",
"<p>9433 rows \u00d7 12 columns</p>\n",
"</div>"
],
"text/plain": [
Expand All @@ -349,7 +349,7 @@
"1661 20 4 2008-01-01 12:29:00-05:00 1 1 <NA> <NA> <NA> <NA> \n",
"1811 7 16 2008-01-01 18:53:00-05:00 1 <NA> <NA> <NA> <NA> <NA> \n",
"... .. .. ... .. ... ... ... ... ... \n",
"13454 4 8 2024-09-26 19:35:00-04:00 1 <NA> 0 0 1 0 \n",
"13461 2 12 2024-09-27 00:03:00-04:00 1 <NA> 0 0 1 0 \n",
"13459 1 20 2024-09-28 00:26:00-04:00 1 <NA> 0 1 0 0 \n",
"13457 6 14 2024-09-28 00:34:00-04:00 1 <NA> 0 1 0 0 \n",
"13458 17 11 2024-09-28 02:56:00-04:00 1 <NA> 0 1 0 0 \n",
Expand All @@ -363,13 +363,13 @@
"1661 County 624 W MP 2.2 at Ikea Dr None 624 \n",
"1811 County 648 E MP .87 at Franklin Ave None 648 \n",
"... ... ... ... \n",
"13454 Ferry Ave Ferry Ave None \n",
"13461 3 None 3 \n",
"13459 Garden State Parkway MP 46.6 None 444 \n",
"13457 County 552 None 552 \n",
"13458 State Highway 40 MP 20.5 None 40 \n",
"13460 New Jersey Turnpike MP 121.4 None 95 \n",
"\n",
"[9432 rows x 12 columns]"
"[9433 rows x 12 columns]"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -402,8 +402,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Most recent NJSP run date: 2024-09-30 10:00:04-04:00\n",
"Most recent month end: 2024-09-01 00:00:00-04:00\n",
"Most recent NJSP run date: 2024-10-01 10:00:04-04:00\n",
"Most recent month end: 2024-10-01 00:00:00-04:00\n",
"Current year start: 2024-01-01 00:00:00-05:00\n",
"Next year start: 2025-01-01 00:00:00-05:00\n"
]
Expand Down Expand Up @@ -649,12 +649,12 @@
"1661 2008-01\n",
"1811 2008-01\n",
" ... \n",
"13454 2024-09\n",
"13461 2024-09\n",
"13459 2024-09\n",
"13457 2024-09\n",
"13458 2024-09\n",
"13460 2024-09\n",
"Name: ym, Length: 9432, dtype: object"
"Name: ym, Length: 9433, dtype: object"
]
},
"execution_count": 13,
Expand Down Expand Up @@ -684,12 +684,12 @@
"2008-04 50\n",
"2008-05 46\n",
" ..\n",
"2024-04 55\n",
"2024-05 48\n",
"2024-06 64\n",
"2024-07 47\n",
"2024-08 63\n",
"Name: tk, Length: 200, dtype: Int8"
"2024-09 57\n",
"Name: tk, Length: 201, dtype: Int8"
]
},
"execution_count": 14,
Expand Down Expand Up @@ -730,12 +730,12 @@
"2008-04 NaN\n",
"2008-05 NaN\n",
" ... \n",
"2024-04 54.583333\n",
"2024-05 54.583333\n",
"2024-06 54.916667\n",
"2024-07 54.750000\n",
"2024-08 55.000000\n",
"Name: tk, Length: 200, dtype: float64"
"2024-09 55.666667\n",
"Name: tk, Length: 201, dtype: float64"
]
},
"execution_count": 15,
Expand Down Expand Up @@ -831,7 +831,7 @@
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>56</td>\n",
" <td>57</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -851,7 +851,7 @@
" 6 64\n",
" 7 47\n",
" 8 63\n",
" 9 56\n",
" 9 57\n",
"\n",
"[201 rows x 1 columns]"
]
Expand Down Expand Up @@ -975,7 +975,7 @@
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>200 rows \u00d7 3 columns</p>\n",
"<p>201 rows \u00d7 3 columns</p>\n",
"</div>"
],
"text/plain": [
Expand All @@ -992,7 +992,7 @@
"179 2022 12 50\n",
"191 2023 12 58\n",
"\n",
"[200 rows x 3 columns]"
"[201 rows x 3 columns]"
]
},
"execution_count": 17,
Expand Down Expand Up @@ -1032,7 +1032,7 @@
" 6 64\n",
" 7 47\n",
" 8 63\n",
" 9 56\n",
" 9 57\n",
"Name: tk, Length: 201, dtype: Int8"
]
},
Expand Down Expand Up @@ -1351,7 +1351,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"683 projected deaths for 2024\n"
"682 projected deaths for 2024\n"
]
}
],
Expand Down Expand Up @@ -1553,11 +1553,11 @@
" <tr>\n",
" <th>2024</th>\n",
" <td>262</td>\n",
" <td>144</td>\n",
" <td>145</td>\n",
" <td>61</td>\n",
" <td>18</td>\n",
" <td>683</td>\n",
" <td>198</td>\n",
" <td>682</td>\n",
" <td>196</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -1582,7 +1582,7 @@
"2021 368 217 86 26 697 0\n",
"2022 379 191 103 16 689 0\n",
"2023 319 172 88 27 606 0\n",
"2024 262 144 61 18 683 198"
"2024 262 145 61 18 682 196"
]
},
"execution_count": 23,
Expand Down Expand Up @@ -2869,7 +2869,7 @@
" <tr>\n",
" <th>2024-09</th>\n",
" <td>34</td>\n",
" <td>14</td>\n",
" <td>15</td>\n",
" <td>7</td>\n",
" <td>1</td>\n",
" </tr>\n",
Expand Down Expand Up @@ -2936,7 +2936,7 @@
"2024-06 37 15 7 5\n",
"2024-07 32 11 1 3\n",
"2024-08 29 20 9 5\n",
"2024-09 34 14 7 1"
"2024-09 34 15 7 1"
]
},
"execution_count": 36,
Expand Down Expand Up @@ -3044,12 +3044,12 @@
"2008-04-01 2008-04-01\n",
"2008-05-01 2008-05-01\n",
" ... \n",
"2024-04-01 2024-04-01\n",
"2024-05-01 2024-05-01\n",
"2024-06-01 2024-06-01\n",
"2024-07-01 2024-07-01\n",
"2024-08-01 2024-08-01\n",
"Name: ym, Length: 200, dtype: object"
"2024-09-01 2024-09-01\n",
"Name: ym, Length: 201, dtype: object"
]
},
"execution_count": 38,
Expand Down Expand Up @@ -3078,12 +3078,12 @@
"2008-04-01 2008-04-01\n",
"2008-05-01 2008-05-01\n",
" ... \n",
"2024-04-01 2024-04-01\n",
"2024-05-01 2024-05-01\n",
"2024-06-01 2024-06-01\n",
"2024-07-01 2024-07-01\n",
"2024-08-01 2024-08-01\n",
"Name: ym, Length: 200, dtype: object"
"2024-09-01 2024-09-01\n",
"Name: ym, Length: 201, dtype: object"
]
},
"execution_count": 39,
Expand Down
Loading

0 comments on commit 8532871

Please sign in to comment.