예제 #1
0
 def testArrayvalueCountSeriesreturnEmptySeries(self):
     priceArray = [52.80, 52.80, 51.18, 52.80,51.18,52.87]
     npsy = NumpySciPy()
     series = npsy.initSeries(priceArray)
     actual = npsy.valueCountSeries(series)
     expected = pd.Index(priceArray).value_counts()
예제 #2
0
 def testSingleValueArrayValueCountSeriesreturnSerie(self):
     priceArray = [52.80]
     npsy = NumpySciPy()
     series = npsy.initSeries(priceArray)
     actual = npsy.valueCountSeries(series)
     expected = pd.Index(priceArray).value_counts()