You can simply get the values from your dictionary and then use np.fullto create the expected matrix:
>>> d={1:6, 2:3, 3:2, 4:2, 5:1}
>>> vals=d.values()
>>> np.full((10,5),list(vals))
array([[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.],
[ 6., 3., 2., 2., 1.]])
method , :
l = np.array([list(method().values()) for _ in range(1, 11)])
. , -, dict.values :
>>> list(map(hash, range (1 , 6)))
[1, 2, 3, 4, 5]
, , collections.OrderedDict.
, OrderedDict , , , . , , :
[map(dict.get, range(1, 6)) for _ in range(10)]