예제 #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()
예제 #3
0
 def test2DArrayInitSeriesreturnObjectSeries(self):
     priceArray = [[49.56, 50.70, 51.18, 52.80, 52.87],[24.24, 24.60, 26.04, 26.90, 26.66]]
     npsy = NumpySciPy()
     actual = npsy.initSeries(priceArray)
     expected = pd.Index(priceArray)
예제 #4
0
 def testArrayInitSeriesreturnSeries(self):
     priceArray = [49.56, 50.70, 51.18, 52.80, 52.87]
     npsy = NumpySciPy()
     actual = npsy.initSeries(priceArray)
     expected = pd.Index(priceArray)
예제 #5
0
 def testSingleValArrayInitSeriesreturnSerie(self):
     priceArray = [49.56]
     npsy = NumpySciPy()
     actual = npsy.initSeries(priceArray)
     expected = pd.Index(priceArray)
예제 #6
0
 def testEmptyArrayInitSeriesreturnEmptySeries(self):
     priceArray = []
     npsy = NumpySciPy()
     actual = npsy.initSeries(priceArray)
     expected = pd.Index(priceArray)