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.
- 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. πͺπ§¨
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 π«
- 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:
pip install pandas seaborn plotly geopandas matplotlib
- 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.
-
Clone this repository to your local machine:
git clone https://github.com/dharmendradiwaker/Exploratory-Data-Analysis-of-Los-Angeles-Crime-Data-.git
-
Navigate to the project folder:
cd exploratory-data-analysis-los-angeles-crime
-
Install the required libraries:
pip install -r requirements.txt
-
Run the Jupyter Notebook or Python script:
jupyter notebook Crime_EDA.ipynb
- Load the dataset from the provided CSV file in the
data/
folder. - Follow the notebook to perform EDA and visualize the results.
- Explore the plots and heatmaps to gain insights into crime trends and victim demographics.
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.
- @Dharmendradiwaker12