Homework 9 Rubric

Submission and Other (6 Points)

Code Points Description
A1 2 Submission is zip containing eda.py, oop.py
A2 2 Zip is named after uni, unzips to folder with uni-hw9
A3 2 eda.py/oop.py are normal python files

Each one all-or-nothing

Part 1 - EDA (30)

Code Points Description
B1 5 pivotByDiagnosisAndShowMean correctly pivots and shows mean of columns provided
B2 5 pivotByDiagnosisAndShowMean commented, style
B3 5 showPairPlot shows pair plot with diganosis hue of provided columns
B4 5 showPairPlot commented, style
B5 5 customPandasAnalysis does more than a simple groupby/pivot_table duplicative of pivotByDiagnosisAndShowMean
B6 5 customPlot shows something interesting

Modifiers:

Part 2 - OOP (38)

Using the original main function.

Code Points Description
C1 3 Zoo class add_animal does not add duplicate
C2 3 Zoo class __str__ (2), __len__ (1)
C3 3 Animal class constructor
C4 3 Animal class __eq__ or equivalent to avoid duplication
C5 3 Animal class __repr__ or __str__ depending on usage
C6 2 Carnivore inherits from Animal (1), Herbivore inherits from Animal (1)
C7 4 Other animals inherit from Carnivore / Herbivore (1 ea)
C8 1 Exhibit inherits from Zoo
C9 4 Exhibit overrides add_animal with animal exclusion code
C10 2 Exhibit Overrides __str__ / __repr__ depending on usage
C11 10 No unnecessary duplicate code that inheritance should’ve handled (-2 per instance)

Style

Uses code D, -2 each.

This is a non-exhaustive list, see comments for more information.