One way to do this is by using the reshape() function in NumPy. This allows you to change the shape of an array without changing its data. For example, you could reshape a 2D array into a 1D array, or vice versa.