def moving_avg_filter(df, inputs):
    """
        Does a moving average filter of the inputted window size (inputs[0]).
        If the window size is too large, it'll be set to the dataframe's size.
    """
    window_size = int(inputs[0])
    if(window_size >= len(df.index)): 
        window_size = len(df.index)
    filtered = df.rolling(window = window_size).mean()
    filtered = filtered.dropna()
    filtered = filtered.reset_index(drop = True)
    return filtered