how to reverse a 1D array in numpy code example Example: reverse order np array reversed_arr = arr[::-1]