Suppose that I have an array like this:
my_arr = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
or a 2D array like:
my_arr = np.array([