Exemplo n.º 1
0
 def testSingleValDictDataFrameCorrReturnSerie(self):
     stockData = {"Blackstone": [49.56]
     }
     npsy = NumpySciPy()
     df = npsy.initDataFrame(stockData)
     actual = npsy.countDF(df)
     expected = pd.DataFrame(stockData).corr()
Exemplo n.º 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()
Exemplo n.º 3
0
 def testEmptyDataFrameCorrReturnEmptySeries(self):
     stockData = {
     }
     npsy = NumpySciPy()
     df = npsy.initDataFrame(stockData)
     actual = npsy.countDF(df)
     expected = pd.DataFrame(stockData).corr()
Exemplo n.º 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()