Skip to main content

A Plotly-based visualization library for road accident data analysis.

Project description

🚗 RoadIntel – Road Accident Data Visualization Library

RoadIntel is a Python library built on Plotly Express for interactive visualization of road accident datasets.
It helps researchers, analysts, and students uncover meaningful patterns in road safety data through clean, reusable visualization functions.


📦 Installation

pip install roadintel

🧠 Features

  • Create rich, interactive charts using Plotly Express
  • Analyze accident data by state, vehicle type, road condition, and more
  • Automatically generate human-readable insights
  • Optimized for dark-themed dashboards
  • Modular and ready for integration in Dash or Jupyter apps

📊 Example Usage

import pandas as pd
from roadintel import charts

# Load dataset
df = pd.read_csv('road_accidents.csv')

# Example 1: Create India Map
fig = charts.create_india_map_chart(df, geojson_data, 'plotly_dark')
fig.show()

# Example 2: Accident Trend
charts.create_monthly_trend_chart(df, 'plotly_dark').show()

📈 Available Charts

Function Description
create_india_map_chart Choropleth map of state-wise accidents
create_monthly_trend_chart Monthly accident trend (line chart)
create_state_bar_chart Top 10 states by accident count
create_severity_donut_chart Accident severity donut chart
create_road_type_chart Severity comparison across road types
create_vehicle_bar_chart Top 5 vehicle types involved
create_alcohol_pie_chart Alcohol involvement in accidents
create_weather_light_chart Weather & lighting impact
create_age_casualty_bar_chart Casualties by driver age group
calculating_insights Generates 5 textual insights from dataset

🧾 License

Licensed under the MIT License.


👨‍💻 Author

Anubhav Shukla
M.Sc. Data Science | Central University of Haryana
📧 Email: anubhavshukla870@gmail.com
🌐 GitHub: https://github.com/mr-robot369

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roadintel-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roadintel-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file roadintel-1.0.0.tar.gz.

File metadata

  • Download URL: roadintel-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for roadintel-1.0.0.tar.gz
Algorithm Hash digest
SHA256 61d7e207f19fa2f42c84587168df885cea9284dc10208a96ca9390c549500143
MD5 d57681ad4e66c038ba23d63899d617e7
BLAKE2b-256 bcbdb29eb4ae388f97609e683c422c73db63e138189b3ce5ca355b8eaab369a5

See more details on using hashes here.

File details

Details for the file roadintel-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: roadintel-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for roadintel-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ad362c61029af0dc9219be11ec442f2cfffaf4c294a44312bf6800590d400ad
MD5 2b1e909dd2bb0491790bcc044fd4f233
BLAKE2b-256 1a0f186ebf08f77cc3776bb57d0bbd587f097b9d9171cc552a62e6b628e33b0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page