Skip to content

Instantly share code, notes, and snippets.

@oguzcan-yavuz
Created June 17, 2017 19:05
Show Gist options
  • Save oguzcan-yavuz/9f0e2c918bdc24e65200d6082411619d to your computer and use it in GitHub Desktop.
Save oguzcan-yavuz/9f0e2c918bdc24e65200d6082411619d to your computer and use it in GitHub Desktop.
oops
# 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