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()
def testSingleValueArrayValueCountSeriesreturnSerie(self): priceArray = [52.80] npsy = NumpySciPy() series = npsy.initSeries(priceArray) actual = npsy.valueCountSeries(series) expected = pd.Index(priceArray).value_counts()
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)
def testArrayInitSeriesreturnSeries(self): priceArray = [49.56, 50.70, 51.18, 52.80, 52.87] npsy = NumpySciPy() actual = npsy.initSeries(priceArray) expected = pd.Index(priceArray)
def testSingleValArrayInitSeriesreturnSerie(self): priceArray = [49.56] npsy = NumpySciPy() actual = npsy.initSeries(priceArray) expected = pd.Index(priceArray)
def testEmptyArrayInitSeriesreturnEmptySeries(self): priceArray = [] npsy = NumpySciPy() actual = npsy.initSeries(priceArray) expected = pd.Index(priceArray)