def get_average_velocity(model):
    """
    Gets the total average velocity over all the agents

    :param model: The model (environment) where the agents exist

    :return: The total average velocity over all the agents
    """
    df = model.datacollector.get_agent_vars_dataframe()
    df.reset_index(inplace=True)
    velocities = df["Velocity"]

    return velocities.mean()