This is a beginner-friendly data analysis mini-project using NumPy, Pandas, and Matplotlib. The project generates random student exam scores, analyzes them, and visualizes the results.
- Generate random student scores with NumPy
- Store and analyze data using Pandas DataFrame
- Calculate statistics (average, max, min)
- Visualize exam results with Matplotlib bar charts
- Save figures as
.pngfiles in the same folder
student-exam-analysis/
β
βββ student_analysis.py # Main project script
βββ student_scores.png # Saved figure (auto-generated)
βββ requirements.txt # Dependencies
-
Clone this repo:
git clone https://github.com/your-username/student-exam-analysis.git cd student-exam-analysis -
Install requirements:
pip install numpy pandas matplotlib
-
Run the script:
python student_analysis.py
-
Check the saved figure:
student_scores.pngwill be created in the same folder.
Console Output
Student Data:
Name Math Science
0 Ali 88 92
1 Sara 70 53
...
Figure Output A bar chart comparing Math and Science scores for each student.
- Load student data from a CSV file
- Add more subjects (English, History, etc.)
- Generate summary reports
- Export results to Excel