{"id":30842931,"url":"https://github.com/0xnu/gb-road-casualties","last_synced_at":"2025-09-06T21:36:23.222Z","repository":{"id":312328394,"uuid":"1042055511","full_name":"0xnu/gb-road-casualties","owner":"0xnu","description":"An analysis of UK road accident statistics from the RAS91 dataset covering 2015-2024.","archived":false,"fork":false,"pushed_at":"2025-08-21T12:28:50.000Z","size":1461,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-06T10:54:51.885Z","etag":null,"topics":["casualties","dft","great-britain","road","transport","uk"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xnu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-21T12:18:16.000Z","updated_at":"2025-08-21T12:34:31.000Z","dependencies_parsed_at":"2025-08-29T22:28:20.237Z","dependency_job_id":"3753fc8c-0883-443c-89ee-a3a173e90f75","html_url":"https://github.com/0xnu/gb-road-casualties","commit_stats":null,"previous_names":["0xnu/gb-road-casualties"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xnu/gb-road-casualties","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fgb-road-casualties","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fgb-road-casualties/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fgb-road-casualties/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fgb-road-casualties/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xnu","download_url":"https://codeload.github.com/0xnu/gb-road-casualties/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xnu%2Fgb-road-casualties/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273967192,"owners_count":25199641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["casualties","dft","great-britain","road","transport","uk"],"created_at":"2025-09-06T21:36:20.265Z","updated_at":"2025-09-06T21:36:23.213Z","avatar_url":"https://github.com/0xnu.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## gb-road-casualties\n\n[![Release](https://img.shields.io/github/release/0xnu/gb-road-casualties.svg)](https://github.com/0xnu/gb-road-casualties/releases/latest)\n[![License](https://img.shields.io/badge/License-Modified_MIT-f5de53?\u0026color=f5de53)](/LICENSE)\n\nAn analysis of UK road accident statistics from the RAS91 dataset covering 2015-2024.\n\n### What It Does\n\nIt analyzes UK road accident statistics from the RAS91 dataset covering 2015-2024. It provides:\n\n+ Analysis of road casualties by various demographics\n+ Trends and patterns in road accidents over time\n+ Breakdown by road user type, severity, age, sex, and geographical regions\n+ Statistical insights and visualizations of accident data\n\n### Key Features\n\n#### 📊 Data Extraction \u0026 Processing\n\n+ Automated extraction from RAS91 ODS files to CSV format\n+ Multiple datasets: Numbers, Age/Sex, Severity, Monthly, Local Authority, and Regional data\n+ Data cleaning and preprocessing for analysis\n+ Structured data organization for easy access\n\n#### 🔍 Statistical Analysis\n\n+ Year-over-year trend analysis (2015-2024)\n+ Demographic breakdown by age groups and sex\n+ Severity classification (Killed, KSI, All casualties)\n+ Road user type analysis (Pedestrians, Cyclists, Motorists, etc.)\n+ Geographical analysis by local authorities and regions\n\n#### 📈 Data Visualization\n\n+ Time series plots of accident trends\n+ Demographic distribution charts\n+ Severity comparison visualizations\n+ Geographical heat maps and regional comparisons\n+ Interactive plots using Matplotlib and Seaborn\n\n#### 📋 Dataset Coverage\n\n+ Numbers: 32 rows, 12 columns - Overall casualty statistics\n+ Age/Sex: 384 rows, 14 columns - Demographic breakdown\n+ Local Authority: 852 rows, 14 columns - Geographical analysis\n+ Monthly: 440 rows, 15 columns - Temporal trends\n+ Severity: 176 rows, 13 columns - Accident severity classification\n+ Regional: 48 rows, 13 columns - Regional comparisons\n\n### Install Dependencies\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install required libraries:\n\n```sh\n# Prerequisites\npython3 -m venv .venv\nsource .venv/bin/activate\npip install pandas numpy matplotlib seaborn scikit-learn openpyxl odfpy jupyter\n```\n\n### Data Requirements\n\nIt requires the RAS91 ODS file from the UK Department for Transport to run the analysis.\n\n+ File: `ras91.ods` (placed in the data/ folder)\n+ Source: [Reported road casualties Great Britain, provisional results: 2024](https://www.gov.uk/government/statistics/reported-road-casualties-great-britain-provisional-results-2024)\n+ The script automatically extracts and processes the data into CSV format\n\n### Run the System\n\nClick the `Run` button to run the individual cell of the [Jupyter Notebook](./road_casualties.ipynb).\n\n### License\n\nThis project is licensed under the [Modified MIT License](./LICENSE).\n\n### Copyright\n\n(c) 2025 [Finbarrs Oketunji](https://finbarrs.eu). All Rights Reserved.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xnu%2Fgb-road-casualties","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xnu%2Fgb-road-casualties","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xnu%2Fgb-road-casualties/lists"}