human
Python program to get moving window data in Python.
assistant
Here is a Python program to get moving window data in Python

import numpy as np

def get_moving_window(data, window_size):
    """
    Returns a moving window of data.

    :param data:
    :param window_size:
    """
    return data[-window_size:]

# Enter the array
data = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

# Calling the function
print((get_moving_window(data, 3)))

#Example Output
# [ 8  9 10]

#Remember to inspect code for bugs.