d = {(1): 6, (2): 3, (3): 2, (4): 2, (5): 1}
results = np.empty((4, 5), int)
for i in range(results.shape[0]):
    result = d
ind = np.fromiter(list(d.keys()), int) - 1
val = np.fromiter(list(d.values()), int)
results[i, ind] = val
How to get values from a map and set them into a numpy matrix row?