def test_merge_by_year(self): self.assertEqual(merge_by_year(2012).shape, (177, 3)) self.assertEqual(merge_by_year(1994).shape, (177, 3))
def __init__(self, year): ''' Constructor ''' self.year = year self.data = merge_by_year(year)
def __init__(self, year): """ Constructor """ self.year = year self.data = merge_by_year(year)