Example #1
0
 def gen_data(size, seed):
     data = {
         'a': generate_uniform_float_column(size, 0., 1., seed + 1),
         'b': generate_uniform_float_column(size, 0., 1., seed + 2),
         'c': generate_uniform_int_column(size, 1, 4, seed + 3),
         'd': generate_uniform_int_column(size, 1, 4, seed + 4)
     }
     return DataFrame.from_dict(data)
Example #2
0
 def gen_data(size, seed):
     data = {
         'a': generate_uniform_float_column(size, 0., 1., seed + 1),
         'b': generate_uniform_float_column(size, 0., 1., seed + 2),
         'c': generate_uniform_int_column(size, 1, 4, seed + 3),
         'd': generate_uniform_int_column(size, 1, 4, seed + 4)
     }
     return DataFrame.from_dict(data)