Один путь будет
np.argwhere(np.broadcast_to(True,(3,4)))
# array([[0, 0],
# [0, 1],
# [0, 2],
# [0, 3],
# [1, 0],
# [1, 1],
# [1, 2],
# [1, 3],
# [2, 0],
# [2, 1],
# [2, 2],
# [2, 3]])
другим (похож на @ MadPhysicist's)
np.c_[np.unravel_index(np.arange(3*4),(3,4))]