def _vindex_transpose(block, axis):
 axes = (([axis] + list(range(axis))) + list(range((axis + 1), block.ndim)))
 return block.transpose(axes)

def _vindex_transpose ( block , axis ) : axes = ( ( [ axis ] + list ( range ( axis ) ) ) + list ( range ( ( axis + 1 ) , block . ndim ) ) ) return block . transpose ( axes )
rotate block so that points are on the first dimension .