The visualization shows the distribution of UCI student performance data, where a merged table combines math and Portuguese grades with demographics and study habits. It displays raw JSON structured output from the students-merged.csv file using D3.js, rendering the parsed records as formatted text. The implementation loads the file via `fetch`, parses CSV with `csvParse`, and converts incoming data types—converting ordered fields like G1, G2, and G3 to numeric values, transforming yes/no binaries to booleans, and trimming categorical strings. The state manages the asynchronous data loading sequence.
AI-generated descriptionStudent Performance (Merged Subjects)
Description:
A single-table dataset built by combining the two UCI
Student Performance files (student-mat.csv and
student-por.csv). Each row represents one student in one
subject and includes demographics, family and school
context, study-related behaviors, and three stage grades
G1, G2, and G3 (0–20). A new field subject
indicates "Math" or "Portuguese".
Source:
UCI Machine Learning Repository — Student Performance Data
Set
https://archive.ics.uci.edu/dataset/320/student+performance
Data Fields:
- school — Categorical (Nominal):
GP,MS. - sex — Categorical (Nominal):
F,M. - age — Quantitative (Discrete): years (15–22).
- address — Categorical (Nominal):
U(urban),R(rural). - famsize — Categorical (Nominal):
LE3,GT3. - Pstatus — Categorical (Nominal): parents together
T/ apartA. - Medu — Ordinal: mother’s education (0–4).
- Fedu — Ordinal: father’s education (0–4).
- Mjob — Categorical (Nominal):
teacher,health,services,at_home,other. - Fjob — Categorical (Nominal): same categories as Mjob.
- reason — Categorical (Nominal):
home,reputation,course,other. - guardian — Categorical (Nominal):
mother,father,other. - traveltime — Ordinal: 1=<15m, 2=15–30m, 3=30–60m, 4=>60m.
- studytime — Ordinal: 1=<2h, 2=2–5h, 3=5–10h, 4=>10h.
- failures — Quantitative (Discrete): past class failures (0–4; 4 means ≥4).
- schoolsup — Binary: extra educational support
(
yes/no). - famsup — Binary: family educational support
(
yes/no). - paid — Binary: extra paid classes (
yes/no). - activities — Binary: extracurricular activities
(
yes/no). - nursery — Binary: attended nursery school
(
yes/no). - higher — Binary: plans higher education
(
yes/no). - internet — Binary: Internet access at home
(
yes/no). - romantic — Binary: in a romantic relationship
(
yes/no). - famrel — Ordinal: family relationship quality (1–5).
- freetime — Ordinal: free time after school (1–5).
- goout — Ordinal: going out with friends (1–5).
- Dalc — Ordinal: workday alcohol consumption (1–5).
- Walc — Ordinal: weekend alcohol consumption (1–5).
- health — Ordinal: current health status (1–5).
- absences — Quantitative (Discrete): number of school absences.
- G1 — Quantitative (Discrete): first period grade (0–20).
- G2 — Quantitative (Discrete): second period grade (0–20).
- G3 — Quantitative (Discrete): final grade (0–20).
- subject — Categorical (Nominal):
"Math"or"Portuguese".
Comments
Sign in to join the discussion.