def clean_data(data):
    """
    This function takes in data and returns a mutated version that converts string versions of numbers
    to their integer or float form depending on the type of value.

    Parameters:
        data (list): A list of dictionaries.

    Returns:
        (list): A list of dictionaries with the numerical values appropriately converted.
    """

    for row in data:
        for key in row.keys():
            if key == 'points':
                row[key] = float(row[key])
            elif key == 'position':
                row[key] = int(row[key])

    return data