Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dharmendradiwaker/exploratory-data-analysis-of-los-angeles-crime-data
This project involves performing exploratory data analysis (EDA) on a large dataset containing over 802,000+ crime records from Los Angeles. The dataset includes 28 columns, and the analysis focuses on understanding crime patterns, victim demographics, crime types, and more.
https://github.com/dharmendradiwaker/exploratory-data-analysis-of-los-angeles-crime-data
eda exploratory-data-analysis matplotlib plotly seaborn
Last synced: about 1 month ago
JSON representation
This project involves performing exploratory data analysis (EDA) on a large dataset containing over 802,000+ crime records from Los Angeles. The dataset includes 28 columns, and the analysis focuses on understanding crime patterns, victim demographics, crime types, and more.
- Host: GitHub
- URL: https://github.com/dharmendradiwaker/exploratory-data-analysis-of-los-angeles-crime-data
- Owner: dharmendradiwaker
- Created: 2023-10-30T16:52:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T18:25:53.000Z (about 2 months ago)
- Last Synced: 2024-12-07T00:20:21.445Z (about 1 month ago)
- Topics: eda, exploratory-data-analysis, matplotlib, plotly, seaborn
- Language: Jupyter Notebook
- Homepage:
- Size: 922 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Exploratory Data Analysis of Los Angeles Crime Data ππ
## Overview
This project involves performing exploratory data analysis (EDA) on a large dataset containing over 802,000+ crime records from Los Angeles. The dataset includes 28 columns, and the analysis focuses on understanding crime patterns, victim demographics, crime types, and more. The insights are visualized using various tools, including **Pandas**, **Seaborn**, **Plotly**, and **Geo Heatmap**.## Key Findings π
- Over **50% of crime victims** are aged between **21-40 years**. πΆπ¨βπ¦±
- More than **50% of victims** are **male**. πΉ
- Over **20% of crimes** were committed using **deadly weapons**. πͺπ§¨## Dataset π
The dataset contains more than **802,000** records, each representing a unique crime. It includes 28 columns such as:
- **Crime Type** π
- **Victim Demographics** π§βπ¦³
- **Crime Location** π
- **Time of Crime** β°
- **Weapon Used** π«## Requirements π
- Python (version 3.6 or higher recommended)
- Required Python libraries:
- Pandas (for data manipulation) π
- Seaborn (for data visualization) π¨
- Plotly (for interactive visualizations) π
- GeoPandas (for geographical data visualizations) π
- Matplotlib (for additional plotting support) πΌοΈYou can install these dependencies using pip:
```bash
pip install pandas seaborn plotly geopandas matplotlib
```## Analysis and Visualizations π
- **Data Cleaning**: Missing values handled, and data was preprocessed for analysis.
- **Visualization Techniques**:
- **Scatter Plots**: To understand correlations and trends.
- **Pie Charts**: For visualizing categorical distributions, like the gender of victims.
- **Geo Heatmap**: To visualize crime hotspots across Los Angeles on a map.
- **Histograms**: To understand the distribution of victims' ages and crime types.## Setup βοΈ
1. Clone this repository to your local machine:
```bash
git clone https://github.com/dharmendradiwaker/Exploratory-Data-Analysis-of-Los-Angeles-Crime-Data-.git
```2. Navigate to the project folder:
```bash
cd exploratory-data-analysis-los-angeles-crime
```3. Install the required libraries:
```bash
pip install -r requirements.txt
```4. Run the Jupyter Notebook or Python script:
```bash
jupyter notebook Crime_EDA.ipynb
```## How to Use π§βπ»
1. Load the dataset from the provided CSV file in the `data/` folder.
2. Follow the notebook to perform EDA and visualize the results.
3. Explore the plots and heatmaps to gain insights into crime trends and victim demographics.## Conclusion π
The analysis provides valuable insights into crime patterns in Los Angeles, especially concerning the age and gender of victims, weapon usage, and the geographic distribution of crimes. This project can help inform policy and improve crime prevention strategies.## Contributors πββοΈ
- @Dharmendradiwaker12---