nayan-2006-opensource/student-marks-analyzer-using-numpy-library — explained in plain English
Analysis updated 2026-05-18
Learn how to use NumPy arrays to analyze a grid of numeric data instead of looping through it manually.
See a worked example of calculating averages, rankings, and pass/fail results from sample student data.
Practice NumPy concepts like slicing, boolean masking, and axis based aggregation on a small dataset.
Use as a starting template for a simple grade or score analysis script.
| nayan-2006-opensource/student-marks-analyzer-using-numpy-library | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 1/5 | 2/5 | 4/5 |
| Audience | vibe coder | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Student Marks Analyzer is a small Python project built to practice working with NumPy, a library for fast number crunching on arrays of data. Instead of pulling in a real class roster, the project generates a set of sample marks for 15 students across 5 subjects, with scores ranging from 0 to 100, and stores them in a single 15 by 5 grid where each row is a student and each column is a subject. Once the data exists, the script runs a range of calculations across it. It works out each student's total marks, average, and percentage, and finds the class topper and the lowest scorer. It also breaks results down by subject, showing the highest, lowest, and average mark for each one, and identifies which subject each student did best and worst in. On top of that it does a pass or fail check, ranks every student, and lists the top three and bottom three performers. It also calculates the median and standard deviation for each subject, which are common measures of spread and typical value in statistics. The point of the project, as the author explains, is not really the student data itself, it is a way to practice core NumPy skills: working with arrays, indexing and slicing them, running calculations across whole rows or columns at once instead of looping manually, filtering data with true or false conditions, and doing basic statistics. This kind of array based approach is generally much faster than writing the same logic with plain Python loops. To run it, you clone the repository, install NumPy with pip, and run the single script file. The project is released under the MIT License and was built by Nayan Samadhiya as a learning exercise in Python and NumPy fundamentals.
A small Python and NumPy learning project that generates sample student marks and calculates totals, averages, rankings, and basic statistics on them.
Mainly Python. The stack also includes Python, NumPy.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly vibe coder.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.