예제 #1
0
 def testSingleValDictDataFrameCorrReturnSerie(self):
     stockData = {"Blackstone": [49.56]
     }
     npsy = NumpySciPy()
     df = npsy.initDataFrame(stockData)
     actual = npsy.countDF(df)
     expected = pd.DataFrame(stockData).corr()
예제 #2
0
 def testDictDataFrameCorrReturnSerie(self):
     stockData = {"Blackstone": [49.56, 50.70, 51.18, 52.80, 52.87]
     }
     npsy = NumpySciPy()
     df = npsy.initDataFrame(stockData)
     actual = npsy.countDF(df)
     expected = pd.DataFrame(stockData).corr()
예제 #3
0
 def testEmptyDataFrameCorrReturnEmptySeries(self):
     stockData = {
     }
     npsy = NumpySciPy()
     df = npsy.initDataFrame(stockData)
     actual = npsy.countDF(df)
     expected = pd.DataFrame(stockData).corr()
예제 #4
0
 def testDualArrayDictDataFrameCorrReturnSeries(self):
     stockData = {"Blackstone": [49.56, 50.70, 51.18, 52.80, 52.87],
                  "KKR": [24.24, 24.60, 26.04, 26.90, 26.66]
                  }
     npsy = NumpySciPy()
     df = npsy.initDataFrame(stockData)
     actual = npsy.countDF(df)
     expected = pd.DataFrame(stockData).corr()