## Evaluator Report

Student:
Question:

### student name — student roll number

File: submissions/sample_solutions.ipynb

Total: 22/34 (64.71%)

Question: check_number
**Return:** A string like `'5 is Positive'`, `'-2 is Negative'`, or `'0 is Zero'`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert check_number(5) == "5 is Positive" | passed | 1 |
assert check_number(-2) == "-2 is Negative" | passed | 1 |
assert check_number(0) == "0 is Zero" | passed | 1 |

Question: sum_1_to_n
**Example:** Input `5` → `15` **Return:** Integer sum of all numbers from 1 to n.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert sum_1_to_n(5) == 15 | passed | 1 |
assert sum_1_to_n(10) == 55 | passed | 1 |

Question: count_letter
**Example:** Input `('banana', 'a')` → `3` **Return:** The count of that letter in the word.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_letter("banana", "a") == 3 | passed | 1 |
assert count_letter("apple", "p") == 2 | passed | 1 |

Question: even_numbers_1_to_10
**Return:** `[2, 4, 6, 8, 10]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert even_numbers_1_to_10() == [2, 4, 6, 8, 10] | passed | 1 |

Question: average_of_three
**Example:** Input `(4, 8, 10)` → `7.3333...` **Return:** Arithmetic mean of the three numbers.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 |
assert average_of_three(3, 3, 3) == 3 | passed | 1 |

Question: load_head
**Hint:** Use `pd.read_csv(dataset_path)` **Return:** The first 5 rows as a DataFrame.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(result, pd.DataFrame) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert len(result) == 5 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert list(result.columns) == ['Name', 'Team', 'Position', 'Height', 'Weight', 'College', 'Salary'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AttributeError: 'list' object has no attribute 'columns'
assert list(result.index) == [0, 1, 2, 3, 4] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: 'builtin_function_or_method' object is not iterable

Question: dataset_shape
**Return:** A tuple like `(rows, columns)`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(result, tuple) | passed | 1 |
assert len(result) == 2 | passed | 1 |
assert result[0] > 0 | passed | 1 |
assert result[1] == 7 | passed | 1 |
assert result == (458, 7) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: column_names
**Return:** A list of column names.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(result, list) | passed | 1 |
assert result == ['Name', 'Team', 'Position', 'Height', 'Weight', 'College', 'Salary'] | passed | 1 |
assert len(result) == 7 | passed | 1 |

Question: average_of_column
**Example:** If column name is `'Sales'`, return the mean of that column. **Hint:** Use `df[column_name].mean()`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(salary_avg, (float, int)) | passed | 1 |
assert salary_avg > 0 | passed | 1 |
assert round(salary_avg, 2) == 4842684.23 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert isinstance(height_avg, (float, int)) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'height_avg' is not defined
assert height_avg > 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'height_avg' is not defined

Question: filter_by_value
**Example:** `filter_by_value(dataset_path, 'Region', 'East')` **Return:** Filtered DataFrame

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(guards, pd.DataFrame) | passed | 1 |
assert len(guards) > 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert all(guards['Position'] == 'PG') | passed | 1 |
assert list(guards.columns) == ['Name', 'Team', 'Position', 'Height', 'Weight', 'College', 'Salary'] | passed | 1 |
assert isinstance(team_result, pd.DataFrame) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'team_result' is not defined
assert len(team_result) > 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'team_result' is not defined
assert all(team_result['Team'] == 'Boston Celtics') | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'team_result' is not defined

### student name — student roll number

File: submissions/student_notebook.ipynb

Total: 0/34 (0.0%)

Question: check_number
**Return:** A string like `'5 is Positive'`, `'-2 is Negative'`, or `'0 is Zero'`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert check_number(5) == "5 is Positive" | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert check_number(-2) == "-2 is Negative" | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert check_number(0) == "0 is Zero" | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: sum_1_to_n
**Example:** Input `5` → `15` **Return:** Integer sum of all numbers from 1 to n.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: count_letter
**Example:** Input `('banana', 'a')` → `3` **Return:** The count of that letter in the word.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert count_letter("banana", "a") == 3 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert count_letter("apple", "p") == 2 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: even_numbers_1_to_10
**Return:** `[2, 4, 6, 8, 10]`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert even_numbers_1_to_10() == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: average_of_three
**Example:** Input `(4, 8, 10)` → `7.3333...` **Return:** Arithmetic mean of the three numbers.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: type NoneType doesn't define __round__ method
assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: load_head
**Hint:** Use `pd.read_csv(dataset_path)` **Return:** The first 5 rows as a DataFrame.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(result, pd.DataFrame) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert len(result) == 5 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: object of type 'NoneType' has no len()
assert list(result.columns) == ['Name', 'Team', 'Position', 'Height', 'Weight', 'College', 'Salary'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AttributeError: 'NoneType' object has no attribute 'columns'
assert list(result.index) == [0, 1, 2, 3, 4] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AttributeError: 'NoneType' object has no attribute 'index'

Question: dataset_shape
**Return:** A tuple like `(rows, columns)`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(result, tuple) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert len(result) == 2 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: object of type 'NoneType' has no len()
assert result[0] > 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: 'NoneType' object is not subscriptable
assert result[1] == 7 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: 'NoneType' object is not subscriptable
assert result == (458, 7) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: column_names
**Return:** A list of column names.

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(result, list) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert result == ['Name', 'Team', 'Position', 'Height', 'Weight', 'College', 'Salary'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert len(result) == 7 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: object of type 'NoneType' has no len()

Question: average_of_column
**Example:** If column name is `'Sales'`, return the mean of that column. **Hint:** Use `df[column_name].mean()`

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(salary_avg, (float, int)) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert salary_avg > 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: '>' not supported between instances of 'NoneType' and 'int'
assert round(salary_avg, 2) == 4842684.23 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: type NoneType doesn't define __round__ method
assert isinstance(height_avg, (float, int)) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert height_avg > 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: '>' not supported between instances of 'NoneType' and 'int'

Question: filter_by_value
**Example:** `filter_by_value(dataset_path, 'Region', 'East')` **Return:** Filtered DataFrame

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(guards, pd.DataFrame) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert len(guards) > 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: object of type 'NoneType' has no len()
assert all(guards['Position'] == 'PG') | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: 'NoneType' object is not subscriptable
assert list(guards.columns) == ['Name', 'Team', 'Position', 'Height', 'Weight', 'College', 'Salary'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AttributeError: 'NoneType' object has no attribute 'columns'
assert isinstance(team_result, pd.DataFrame) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert len(team_result) > 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: object of type 'NoneType' has no len()
assert all(team_result['Team'] == 'Boston Celtics') | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> TypeError: 'NoneType' object is not subscriptable