def get_removed_guides_genes(anchor_df, guides):
    """Get dataframe of removed guides and genes

    Parameters
    ----------
    anchor_df: DataFrame
    guides: list
        List of guides being removed

    Returns
    -------
    DataFrame
    """
    remove_anchor = (anchor_df.loc[anchor_df.anchor_guide.isin(guides),
                                   ['anchor_guide', 'anchor_gene']]
                     .rename({'anchor_guide': 'guide', 'anchor_gene': 'gene'}, axis=1)
                     .drop_duplicates())
    return remove_anchor