def filter_top10(data):
    """
    Gets the top ten rows based on the weightedAverage column.
    Parameters:
        data = IMDb dataframe that contains the column 'weightedAverage'.
    Returns: A dataframe with the ten rows with the largest
    'weightedAverage' value.
    """
    return data.nlargest(10, 'weightedAverage')