ndarray.flatten

ndarray.flatten(self, order='C')

Return a copy of the array collapsed into one dimension.