Created
June 17, 2017 19:05
-
-
Save oguzcan-yavuz/9f0e2c918bdc24e65200d6082411619d to your computer and use it in GitHub Desktop.
oops
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Kod kismi | |
class StatisticalSummary(object): | |
def __init__(self, seq): | |
self.seq = seq | |
def five_figure_summary(self, precision=None): | |
return ("N", "extreme_lower", "extreme_upper", "lower_quartile", "median", "upper_quartile") | |
# Test kismi | |
data = range(0, 7) | |
test.assert_equals(StatisticalSummary(data).five_figure_summary(2), (7, 0, 6, 1.5, 3, 4.5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment