<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def split_array_as_array(self, values):
 """Group ndarray into ndarray by means of reshaping Parameters Returns ------- values grouped by key Raises ------ AssertionError This operation is only possible if index.uniform==True """

        if not self.index.uniform:
            raise ValueError("Array can only be split as array if all groups have the same size")
        values = np.asarray(values)
        values = values[self.index.sorter]
        return values.reshape(self.groups, -1, *values.shape[1:])