Crime_analyser

πŸ•΅οΈ Crime and Murder Data Analyzer - India

A comprehensive Python-based data analysis tool to explore crime and murder statistics in India. It supports both CLI-based interaction and graphical data visualization.

πŸš€ Features

🧠 Technologies Used


πŸ—‚οΈ Project Structure

β”œβ”€β”€ main.py            # Main script
β”œβ”€β”€ crimes.csv         # Crime dataset (2001–2012)
β”œβ”€β”€ murder.csv         # Murder dataset (2013)
β”œβ”€β”€ README.md          # Project documentation
β”œβ”€β”€ requirements.txt

πŸ› οΈ Setup Instructions

1. πŸ” Clone the Repository

git clone https://github.com/GAURAV-RAYAT/crime_analyser.git
cd crime_analyser

2. πŸ“¦ Install Dependencies

Make sure Python is installed. Run:

pip install -r requirements.txt

If requirements.txt is not present, install manually:

pip install pandas matplotlib rich mysql-connector-python

3. πŸƒ Run the Application

python main.py

Follow the interactive menu in the terminal.


πŸ’Ύ MySQL Database Option

To store data in MySQL:

πŸ’‘ Want to use SQLite instead? Update the database logic in main.py to use sqlite3 instead of mysql.connector.


πŸ‘¨β€πŸ’» Author

Gaurav Rayat
Portfolio | GitHub