Exemplo n.º 1
0
 def test_dataframe_from_array2(self):
     vals = [float(i) for i in range(0,5)]
     key = Key("test",0)
     kv = KeyValueStore()
     d = Dataframe.from_array(key=key,kv=kv,size=5,array=vals,arr_type='F')
     self.assertEqual([vals], d.data)
Exemplo n.º 2
0
 def producer(self):
     SZ = 100*100
     vals = [float(i) for i in range(0,SZ)]
     sum_vals = float(sum(vals))
     d = Dataframe.from_array(self.main, self.kv, SZ, vals, "F")
     s = Dataframe.from_scalar(self.check,self.kv,sum_vals, "F")
Exemplo n.º 3
0
 def test_dataframe_from_array(self):
     vals = [float(i) for i in range(0,500)]
     key = Key("test",0)
     kv = KeyValueStore()
     d = Dataframe.from_array(key=key,kv=kv, size=500,array=vals,arr_type='F')
     self.assertEqual(Schema(["F"],ncols=1,nrows=500), d.schema)