gender large_stringclasses 2
values | race/ethnicity large_stringclasses 5
values | parental level of education large_stringclasses 6
values | lunch large_stringclasses 2
values | test preparation course large_stringclasses 2
values | math score int64 8 100 ⌀ | reading score int64 24 100 ⌀ | writing score int64 23 100 ⌀ |
|---|---|---|---|---|---|---|---|
male | group D | associate's degree | free/reduced | completed | 79 | 82 | 80 |
female | group C | some college | standard | completed | 67 | 81 | 79 |
male | group C | some college | free/reduced | none | 68 | 68 | 61 |
female | group D | master's degree | free/reduced | completed | 47 | 58 | 67 |
female | group A | some college | standard | completed | 72 | 79 | 82 |
female | group E | high school | free/reduced | completed | 57 | 75 | 73 |
female | group C | bachelor's degree | standard | none | 83 | 93 | 95 |
male | group A | some college | standard | completed | 61 | 51 | 52 |
male | group C | associate's degree | standard | completed | 98 | 87 | 90 |
female | group D | master's degree | free/reduced | completed | 61 | 71 | 78 |
female | group C | bachelor's degree | standard | completed | 92 | 100 | 99 |
female | group C | associate's degree | standard | completed | 68 | 67 | 73 |
female | group E | some high school | standard | none | 77 | 79 | 80 |
male | group C | some college | standard | none | 66 | 59 | 52 |
male | group B | high school | standard | none | 47 | 46 | 42 |
male | group C | some college | free/reduced | none | 65 | 58 | 49 |
male | group A | some high school | free/reduced | none | 68 | 72 | 64 |
female | group C | some college | standard | completed | 63 | 78 | 80 |
female | group D | high school | free/reduced | none | 73 | 92 | 84 |
female | group C | high school | free/reduced | none | 42 | 62 | 60 |
female | group E | master's degree | standard | none | 62 | 68 | 68 |
female | group D | bachelor's degree | standard | completed | 68 | 75 | 81 |
female | group C | associate's degree | standard | completed | 67 | 84 | 81 |
male | group D | some college | free/reduced | none | 49 | 57 | 46 |
female | group C | some college | free/reduced | none | 35 | 44 | 43 |
male | group A | high school | standard | none | 68 | 70 | 66 |
female | group B | high school | standard | completed | 69 | 76 | 74 |
male | group C | high school | standard | none | 70 | 74 | 71 |
female | group E | some high school | standard | completed | 80 | 85 | 85 |
female | group C | some college | standard | completed | 75 | 81 | 84 |
female | group D | some college | standard | none | 63 | 64 | 67 |
male | group B | bachelor's degree | standard | none | 66 | 60 | 57 |
female | group B | some high school | free/reduced | completed | 74 | 90 | 88 |
female | group C | some high school | standard | completed | 44 | 51 | 55 |
female | group B | bachelor's degree | standard | none | 72 | 72 | 74 |
female | group D | master's degree | standard | completed | 77 | 82 | 91 |
male | group D | high school | standard | none | 46 | 34 | 36 |
male | group C | high school | standard | completed | 72 | 67 | 64 |
male | group B | associate's degree | standard | completed | 82 | 84 | 78 |
male | group E | associate's degree | standard | completed | 62 | 61 | 58 |
male | group D | associate's degree | standard | none | 80 | 68 | 72 |
female | group C | high school | standard | none | 54 | 59 | 62 |
female | group D | some college | standard | none | 79 | 86 | 81 |
female | group B | high school | standard | none | 87 | 95 | 86 |
female | group C | some high school | standard | completed | 65 | 74 | 77 |
female | group C | associate's degree | free/reduced | completed | 82 | 93 | 93 |
female | group B | associate's degree | standard | none | 40 | 48 | 50 |
female | group D | bachelor's degree | free/reduced | completed | 93 | 100 | 100 |
female | group C | bachelor's degree | standard | none | 65 | 72 | 74 |
male | group D | some high school | standard | completed | 77 | 68 | 69 |
female | group C | some college | free/reduced | none | 46 | 64 | 66 |
male | group B | some college | standard | completed | 88 | 85 | 76 |
female | group E | some high school | free/reduced | none | 32 | 34 | 38 |
female | group C | associate's degree | standard | none | 39 | 64 | 57 |
male | group D | some high school | standard | none | 86 | 73 | 70 |
male | group C | some high school | free/reduced | completed | 53 | 37 | 40 |
male | group A | some college | free/reduced | completed | 81 | 78 | 81 |
male | group B | some college | free/reduced | none | 41 | 39 | 34 |
male | group C | some college | standard | none | 61 | 61 | 62 |
male | group D | some college | standard | none | 88 | 73 | 78 |
female | group A | some high school | standard | completed | 59 | 85 | 80 |
female | group D | some high school | standard | none | 81 | 97 | 96 |
male | group C | bachelor's degree | standard | none | 58 | 55 | 48 |
female | group C | some college | free/reduced | completed | 64 | 85 | 85 |
female | group E | master's degree | standard | none | 81 | 92 | 91 |
male | group C | high school | standard | none | 70 | 70 | 65 |
female | group C | bachelor's degree | free/reduced | none | 62 | 78 | 79 |
male | group D | some college | standard | completed | 77 | 62 | 62 |
female | group D | high school | standard | none | 62 | 64 | 64 |
female | group E | some college | standard | none | 87 | 85 | 93 |
female | group C | some college | free/reduced | completed | 67 | 75 | 70 |
male | group A | bachelor's degree | free/reduced | none | 62 | 72 | 65 |
female | group D | some high school | standard | none | 76 | 72 | 71 |
female | group C | associate's degree | standard | none | 63 | 67 | 70 |
female | group B | some college | standard | completed | 88 | 95 | 92 |
male | group D | associate's degree | standard | none | 72 | 79 | 74 |
female | group D | master's degree | standard | none | 55 | 64 | 70 |
male | group C | some high school | free/reduced | none | 61 | 57 | 56 |
male | group D | bachelor's degree | free/reduced | none | 50 | 42 | 48 |
male | group E | some high school | standard | completed | 87 | 84 | 76 |
male | group B | some college | standard | none | 54 | 52 | 51 |
female | group C | some college | free/reduced | none | 22 | 39 | 33 |
male | group D | high school | free/reduced | none | 66 | 74 | 69 |
male | group C | bachelor's degree | standard | completed | 83 | 82 | 84 |
female | group D | high school | standard | completed | 56 | 68 | 74 |
female | group B | associate's degree | free/reduced | none | 54 | 65 | 65 |
female | group D | master's degree | standard | none | 74 | 79 | 82 |
male | group E | some college | free/reduced | completed | 87 | 74 | 70 |
male | group E | high school | free/reduced | completed | 86 | 81 | 75 |
male | group B | some college | standard | none | 66 | 65 | 60 |
male | group C | associate's degree | free/reduced | completed | 65 | 67 | 65 |
female | group C | associate's degree | standard | none | 58 | 73 | 68 |
female | group C | associate's degree | standard | completed | 75 | 82 | 90 |
female | group B | associate's degree | free/reduced | none | 52 | 76 | 70 |
female | group C | some college | standard | none | 54 | 64 | 65 |
female | group E | associate's degree | standard | completed | 82 | 85 | 86 |
female | group C | some high school | standard | none | 63 | 73 | 68 |
female | group A | some high school | free/reduced | none | 59 | 73 | 69 |
male | group E | bachelor's degree | free/reduced | completed | 70 | 68 | 72 |
female | group C | high school | free/reduced | completed | 59 | 71 | 65 |
Student Performance Datasets
1. Project Overview
This repository contains two student performance datasets prepared for data analysis and machine learning applications.
Both datasets were processed independently and divided into training, validation, and testing subsets. All six output files are stored in Parquet format and hosted on Hugging Face.
2. Datasets Description
Dataset 1: Students Performance in Exams
- Total records: 1,000
- Total columns: 8
- Features include gender, race/ethnicity, parental level of education, lunch, test preparation course, math score, reading score, and writing score.
Dataset 2: Student Performance 1 Million
- Total records: 1,000,000
- Total columns: 6
- Features include student ID, weekly self-study hours, attendance percentage, class participation, total score, and grade.
3. Data Preprocessing
The following steps were performed:
- Imported the required Python libraries.
- Loaded both CSV datasets using Pandas.
- Examined dataset dimensions, columns, and data types.
- Checked for missing values.
- Prepared both datasets independently.
- Split the datasets into training, validation, and testing subsets.
- Converted all subsets into Parquet format.
- Verified the generated Parquet files.
4. Dataset Splitting
Both datasets use a 70:15:15 split ratio.
| Dataset Split | Percentage |
|---|---|
| Training | 70% |
| Validation | 15% |
| Testing | 15% |
Random State: 42
Stratification: Grade-based stratification was applied to the 1-million-record dataset.
5. Files Included
This repository contains six Parquet files.
| File Name | Number of Records |
|---|---|
| exams_train.parquet | 700 |
| exams_validation.parquet | 150 |
| exams_test.parquet | 150 |
| million_train.parquet | 700,000 |
| million_validation.parquet | 150,000 |
| million_test.parquet | 150,000 |
6. Technologies Used
- Python
- Jupyter Notebook
- Pandas
- NumPy
- Scikit-learn
- PyArrow
- Hugging Face
7. How to Load the Dataset
Install the required libraries:
pip install pandas pyarrow
Example Python code:
import pandas as pd
train_data = pd.read_parquet("exams_train.parquet")
print(train_data.head())
print(train_data.shape)
8. GitHub Repository
The complete Jupyter Notebook and project documentation are available here:
Student Performance Data Preparation - GitHub
9. Conclusion
This project demonstrates the preparation of two student performance datasets through data inspection, preprocessing, dataset splitting, and Parquet conversion.
The six generated Parquet files are available in this repository for further data analysis and machine learning applications.
- Downloads last month
- 231