コード例 #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)