def getNonsenseData(data):
    """
    Keeps only those rows that correspond to nonsense mutations.
    Arguments:
        data =  dataframe
    Returns:
        ns_data = dataframe
    """
    ns_data = data[(data["Mutation Description"] == "Substitution - Nonsense")]
    return ns_data