Skip to content

Python-based analytics project exploring HR data to understand workforce distribution, salary patterns, and employee performance. It delivers clear insights through visualizations, statistics, and department-level analysis.

Notifications You must be signed in to change notification settings

LoganathanAnalyst/HR_Dataanalysis_using_python-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

🧑‍💼 HR Data Analysis with Python – End-to-End Analytics Project


📌 Overview

This project performs comprehensive HR data analysis using Python on a dataset of 2 million employee records.
It focuses on workforce distribution, hiring trends, performance analytics, salary insights, attrition patterns, and more.

The analysis transforms raw HR data into actionable insights for HR managers, analysts, and business leaders.


🛠️ Tech Stack

  • Python
  • Pandas
  • NumPy
  • Matplotlib
  • Seaborn
  • Jupyter Notebook

📂 Dataset Details

The dataset contains 11 columns, including:

  • Employee details
  • Department & Job Title
  • Hire Date & Country
  • Salary
  • Performance Rating
  • Work Mode (Remote / On-site)
  • Status (Active, Resigned, Retired, Terminated)

⭐ Key Analysis Performed

1️⃣ Employee Status Distribution

Breakdown of:

  • Active
  • Resigned
  • Terminated
  • Retired

Pie-chart visualization included.


2️⃣ Work Mode Distribution

Remote vs On-site workforce share.


3️⃣ Employee Count by Department

Department-level analysis with bar charts.


4️⃣ Average Salary by Department

Computed and visualized using Pandas groupby + Matplotlib.


5️⃣ Highest Paying Job Titles

Top salaries by job roles — insights into compensation structures.


6️⃣ Salary by Department & Job Title

Multi-level groupby analysis showing detailed salary comparisons.


7️⃣ Resigned & Terminated Employees by Department

Attrition breakdown with bar charts.


8️⃣ Salary vs Experience Years

Understanding how salary grows with experience.


9️⃣ Performance Rating by Department

Department-wise average performance score.


🔟 Countries with Highest Employee Concentration

Extracted from location → country parsing.


1️⃣1️⃣ Correlation Analysis

Correlation between:

  • Salary & performance rating
  • Numeric features heatmap

1️⃣2️⃣ Hiring Trend Analysis (Year-wise)

Shows annual hiring patterns over 16 years.


1️⃣3️⃣ Salary Comparison: Remote vs On-site

Identifying if remote workers are paid more.


1️⃣4️⃣ Top 10 Highest Paid Employees per Department

Department-wise salary ranking using nlargest().


1️⃣5️⃣ Attrition Rate by Department

Resigned % per department (Resigned / Total * 100).
Sorted to find highest-risk departments.


📊 Visualizations Included

  • Pie charts
  • Countplots
  • Bar charts
  • Heatmaps
  • Yearly hiring trend graph
  • Department vs Job salary chart

All visuals generated using Matplotlib and Seaborn.


📁 Project Structure

📦 HR-Data-Analysis
 ┣ 📜 HR_Data_Analysis.ipynb
 ┣ 📜 HR_Data.csv
 ┣ 📜 README.md
 ┗ 📂 images/ (optional charts)

📌 Author

👤 Loganathan
loganathanvizasia@gmail.com


⭐ If you like this project, don’t forget to star the repository!

About

Python-based analytics project exploring HR data to understand workforce distribution, salary patterns, and employee performance. It delivers clear insights through visualizations, statistics, and department-level analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published