Skip to content

A Python data analysis project using Pandas and Matplotlib to analyze student grades, generate summary reports, and visualize results.

Notifications You must be signed in to change notification settings

HewadRustomCS/Student-Grades-Data-Analysis-Python-Pandas-Matplotlib-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Student Grades Data Analysis (Python + Pandas + Matplotlib)

A Python project that analyzes student grades using Pandas and visualizes the results with Matplotlib. It loads grades from a CSV file, calculates statistics, generates reports, and produces visual charts.

πŸš€ Features

  • Load student grades from a CSV file (students.csv)
  • Calculate:
    • Average, highest, and lowest score
    • Number of passed/failed students
  • Save summary to grades_summary.txt
  • Visualize:
    • Histogram of grade distribution
    • Bar chart of average grade per subject

πŸ› οΈ Setup & Run

  1. Clone this repository
  2. Install requirements:
    pip install pandas matplotlib

Make sure students.csv is in the same folder as grades_analysis.py

Run:

bash Copy code python grades_analysis.py πŸ“‚ Example Dataset (students.csv) csv Copy code Name,Subject,Grade Alice,Math,78 Bob,Math,55 Charlie,Math,32 Diana,Science,88 Ethan,Science,47 Fiona,History,65 George,History,29 Helen,Math,92 πŸ“Œ Example Output css Copy code βœ… Loaded 8 records from students.csv πŸ“„ Report saved to grades_summary.txt grades_summary.txt

yaml Copy code === Student Grades Summary === Total students : 8 Average score : 60.75 Highest score : 92 Lowest score : 29 Passed : 6 Failed : 2 πŸ“ˆ Visualizations grades_histogram.png β†’ Histogram of grades

subject_avg.png β†’ Bar chart of subject averages

πŸ“– What I Learned Using Pandas for data manipulation

Applying Matplotlib for visualizations

Reading/writing CSV & text files in Python

Creating a clean and reproducible data pipeline

About

A Python data analysis project using Pandas and Matplotlib to analyze student grades, generate summary reports, and visualize results.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages