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 Sep 10, 2024
1 parent 09fab51 commit 89e19df
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 30 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 @@ -350,7 +350,7 @@ year,county,driver,passenger,cyclist,pedestrian,crashes
2024,Monmouth,18,5,3,11,36
2024,Morris,7,0,1,5,13
2024,Ocean,20,4,1,9,32
2024,Passaic,12,2,0,3,16
2024,Passaic,12,2,0,4,17
2024,Salem,7,2,3,1,11
2024,Somerset,8,0,0,3,11
2024,Sussex,5,2,1,2,10
Expand Down
40 changes: 17 additions & 23 deletions njsp/update-plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>9396 rows \u00d7 12 columns</p>\n",
"<p>9397 rows \u00d7 12 columns</p>\n",
"</div>"
],
"text/plain": [
Expand Down Expand Up @@ -369,7 +369,7 @@
"13420 Garden State Parkway MP 81.7 None 444 \n",
"13421 State Highway 55 MP 39.2 None 55 \n",
"\n",
"[9396 rows x 12 columns]"
"[9397 rows x 12 columns]"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -402,7 +402,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Most recent NJSP run date: 2024-09-09 10:00:05-04:00\n",
"Most recent NJSP run date: 2024-09-10 10:00:04-04:00\n",
"Most recent month end: 2024-09-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 @@ -654,7 +654,7 @@
"13419 2024-09\n",
"13420 2024-09\n",
"13421 2024-09\n",
"Name: ym, Length: 9396, dtype: object"
"Name: ym, Length: 9397, dtype: object"
]
},
"execution_count": 13,
Expand Down Expand Up @@ -688,7 +688,7 @@
"2024-05 48\n",
"2024-06 64\n",
"2024-07 47\n",
"2024-08 58\n",
"2024-08 59\n",
"Name: tk, Length: 200, dtype: Int8"
]
},
Expand Down Expand Up @@ -734,7 +734,7 @@
"2024-05 54.750000\n",
"2024-06 55.083333\n",
"2024-07 54.916667\n",
"2024-08 54.750000\n",
"2024-08 54.833333\n",
"Name: tk, Length: 200, dtype: float64"
]
},
Expand Down Expand Up @@ -827,7 +827,7 @@
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>58</td>\n",
" <td>59</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
Expand All @@ -850,7 +850,7 @@
"2024 5 48\n",
" 6 64\n",
" 7 47\n",
" 8 58\n",
" 8 59\n",
" 9 20\n",
"\n",
"[201 rows x 1 columns]"
Expand Down Expand Up @@ -1031,7 +1031,7 @@
"2024 5 48\n",
" 6 64\n",
" 7 47\n",
" 8 58\n",
" 8 59\n",
" 9 20\n",
"Name: tk, Length: 201, dtype: Int8"
]
Expand Down Expand Up @@ -1351,7 +1351,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"695 projected deaths for 2024\n"
"692 projected deaths for 2024\n"
]
}
],
Expand Down Expand Up @@ -1553,11 +1553,11 @@
" <tr>\n",
" <th>2024</th>\n",
" <td>240</td>\n",
" <td>134</td>\n",
" <td>135</td>\n",
" <td>55</td>\n",
" <td>17</td>\n",
" <td>695</td>\n",
" <td>249</td>\n",
" <td>692</td>\n",
" <td>245</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 173 88 26 606 0\n",
"2024 240 134 55 17 695 249"
"2024 240 135 55 17 692 245"
]
},
"execution_count": 23,
Expand Down Expand Up @@ -2862,7 +2862,7 @@
" <tr>\n",
" <th>2024-08</th>\n",
" <td>26</td>\n",
" <td>18</td>\n",
" <td>19</td>\n",
" <td>9</td>\n",
" <td>5</td>\n",
" </tr>\n",
Expand Down Expand Up @@ -2935,7 +2935,7 @@
"2024-05 28 11 8 1\n",
"2024-06 37 15 7 5\n",
"2024-07 32 11 1 3\n",
"2024-08 26 18 9 5\n",
"2024-08 26 19 9 5\n",
"2024-09 14 5 1 0"
]
},
Expand Down Expand Up @@ -3176,13 +3176,7 @@
"output_type": "stream",
"text": [
"Wrote plot JSON to www/public/plots/fatalities_by_month_bars.json\n",
"Wrote plot image to www/public/plots/fatalities_by_month_bars.png\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Wrote plot image to www/public/plots/fatalities_by_month_bars.png\n",
"Wrote plot image to www/public/plots/fatalities_by_month_bars_titled.png\n"
]
}
Expand Down
2 changes: 1 addition & 1 deletion www/public/plots/fatalities_by_month_bars.json

Large diffs are not rendered by default.

Binary file modified www/public/plots/fatalities_by_month_bars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion www/public/plots/fatalities_by_month_lines.json

Large diffs are not rendered by default.

Binary file modified www/public/plots/fatalities_by_month_lines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion www/public/plots/fatalities_per_month.json

Large diffs are not rendered by default.

Binary file modified www/public/plots/fatalities_per_month.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion www/public/plots/fatalities_per_month_by_type.json

Large diffs are not rendered by default.

Binary file modified www/public/plots/fatalities_per_month_by_type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion www/public/plots/fatalities_per_year_by_type.json

Large diffs are not rendered by default.

Binary file modified www/public/plots/fatalities_per_year_by_type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion www/public/plots/ytd-deaths.json

Large diffs are not rendered by default.

Binary file modified www/public/plots/ytd-deaths.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 89e19df

Please sign in to comment.