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 Aug 23, 2024
1 parent 9fee7d4 commit 527c1f7
Show file tree
Hide file tree
Showing 6 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 @@ -355,4 +355,4 @@ year,county,driver,passenger,cyclist,pedestrian,crashes
2024,Somerset,8,0,0,2,10
2024,Sussex,4,1,1,2,8
2024,Union,9,2,1,7,18
2024,Warren,7,1,1,2,10
2024,Warren,8,1,1,2,11
76 changes: 38 additions & 38 deletions njsp/update-plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -257,21 +257,6 @@
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13372</th>\n",
" <td>14</td>\n",
" <td>29</td>\n",
" <td>2024-08-19 21:27: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>State Highway 46</td>\n",
" <td>None</td>\n",
" <td>46</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13370</th>\n",
" <td>6</td>\n",
" <td>14</td>\n",
Expand Down Expand Up @@ -331,9 +316,24 @@
" <td>None</td>\n",
" <td>606</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13377</th>\n",
" <td>21</td>\n",
" <td>14</td>\n",
" <td>2024-08-22 08:00:00-04:00</td>\n",
" <td>1</td>\n",
" <td>&lt;NA&gt;</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>Lakeside Drive</td>\n",
" <td>Lakeside Drive</td>\n",
" <td>None</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>9359 rows \u00d7 12 columns</p>\n",
"<p>9360 rows \u00d7 12 columns</p>\n",
"</div>"
],
"text/plain": [
Expand All @@ -345,11 +345,11 @@
"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",
"13372 14 29 2024-08-19 21:27:00-04:00 1 <NA> 0 0 1 0 \n",
"13370 6 14 2024-08-19 23:37:00-04:00 1 <NA> 1 0 0 0 \n",
"13374 7 14 2024-08-20 01:13:00-04:00 1 <NA> 1 0 0 0 \n",
"13375 14 29 2024-08-21 15:27:00-04:00 1 <NA> 1 0 0 0 \n",
"13376 11 3 2024-08-21 16:10:00-04:00 1 <NA> 0 0 1 0 \n",
"13377 21 14 2024-08-22 08:00:00-04:00 1 <NA> 1 0 0 0 \n",
"\n",
" location street highway \n",
"id \n",
Expand All @@ -359,13 +359,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",
"13372 State Highway 46 None 46 \n",
"13370 655 None 655 \n",
"13374 County 509 None 509 \n",
"13375 County 511 None 511 \n",
"13376 County 606 None 606 \n",
"13377 Lakeside Drive Lakeside Drive None \n",
"\n",
"[9359 rows x 12 columns]"
"[9360 rows x 12 columns]"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -398,7 +398,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Most recent NJSP run date: 2024-08-22 10:00:01-04:00\n",
"Most recent NJSP run date: 2024-08-23 10:00:04-04:00\n",
"Most recent month end: 2024-08-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 @@ -639,12 +639,12 @@
"1661 2008-01\n",
"1811 2008-01\n",
" ... \n",
"13372 2024-08\n",
"13370 2024-08\n",
"13374 2024-08\n",
"13375 2024-08\n",
"13376 2024-08\n",
"Name: ym, Length: 9359, dtype: object"
"13377 2024-08\n",
"Name: ym, Length: 9360, dtype: object"
]
},
"execution_count": 13,
Expand Down Expand Up @@ -821,7 +821,7 @@
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>33</td>\n",
" <td>34</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -841,7 +841,7 @@
" 5 48\n",
" 6 65\n",
" 7 46\n",
" 8 33\n",
" 8 34\n",
"\n",
"[200 rows x 1 columns]"
]
Expand Down Expand Up @@ -1022,7 +1022,7 @@
" 5 48\n",
" 6 65\n",
" 7 46\n",
" 8 33\n",
" 8 34\n",
"Name: tk, Length: 200, dtype: Int8"
]
},
Expand Down Expand Up @@ -1341,7 +1341,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"701 projected deaths for 2024\n"
"704 projected deaths for 2024\n"
]
}
],
Expand Down Expand Up @@ -1542,12 +1542,12 @@
" </tr>\n",
" <tr>\n",
" <th>2024</th>\n",
" <td>219</td>\n",
" <td>220</td>\n",
" <td>122</td>\n",
" <td>47</td>\n",
" <td>15</td>\n",
" <td>701</td>\n",
" <td>298</td>\n",
" <td>704</td>\n",
" <td>300</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -1572,7 +1572,7 @@
"2021 368 217 86 26 697 0\n",
"2022 379 191 103 16 689 0\n",
"2023 320 173 88 26 607 0\n",
"2024 219 122 47 15 701 298"
"2024 220 122 47 15 704 300"
]
},
"execution_count": 23,
Expand Down Expand Up @@ -1949,11 +1949,11 @@
" </tr>\n",
" <tr>\n",
" <th>Warren</th>\n",
" <td>7</td>\n",
" <td>8</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>10</td>\n",
" <td>11</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -1973,7 +1973,7 @@
" Somerset 8 0 0 2 10\n",
" Sussex 4 1 1 2 8\n",
" Union 9 2 1 7 18\n",
" Warren 7 1 1 2 10\n",
" Warren 8 1 1 2 11\n",
"\n",
"[105 rows x 5 columns]"
]
Expand Down Expand Up @@ -2182,11 +2182,11 @@
" </tr>\n",
" <tr>\n",
" <th>Warren</th>\n",
" <td>7</td>\n",
" <td>8</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>10</td>\n",
" <td>11</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -2206,7 +2206,7 @@
" Somerset 8 0 0 2 10\n",
" Sussex 4 1 1 2 8\n",
" Union 9 2 1 7 18\n",
" Warren 7 1 1 2 10\n",
" Warren 8 1 1 2 11\n",
"\n",
"[357 rows x 5 columns]"
]
Expand Down Expand Up @@ -2855,7 +2855,7 @@
" </tr>\n",
" <tr>\n",
" <th>2024-08</th>\n",
" <td>18</td>\n",
" <td>19</td>\n",
" <td>10</td>\n",
" <td>2</td>\n",
" <td>3</td>\n",
Expand Down Expand Up @@ -2922,7 +2922,7 @@
"2024-05 28 11 8 1\n",
"2024-06 37 16 7 5\n",
"2024-07 31 11 1 3\n",
"2024-08 18 10 2 3"
"2024-08 19 10 2 3"
]
},
"execution_count": 36,
Expand Down
Loading

0 comments on commit 527c1f7

Please sign in to comment.