phylogenetics/tools/df_editor.py
def _check_uid(df,uid):
    """
    Make sure uid is in dataframe and is unique.
    """

    num_hits = np.sum(df.uid == uid)
    if num_hits == 0:
        err = "uid '{}' not in data frame.\n".format(uid)
        raise ValueError(err)
    elif num_hits > 1:
        err = "uid '{}' found multiple times in data frame.\n".format(uid)
        raise ValueError(err)
    else:
        pass

    Make sure uid is in dataframe and is unique.
    
Make sure uid is in dataframe and is unique.
Make sure uid is in dataframe and is unique .
def _check_uid(df,uid):
    num_hits = np.sum(df.uid == uid)
    if num_hits == 0:
        err = "uid '{}' not in data frame.\n".format(uid)
        raise ValueError(err)
    elif num_hits > 1:
        err = "uid '{}' found multiple times in data frame.\n".format(uid)
        raise ValueError(err)
    else:
        pass
def _check_uid ( df , uid ) : num_hits = np . sum ( df . uid == uid ) if num_hits == 0 : err = "uid '{}' not in data frame.\n" . format ( uid ) raise ValueError ( err ) elif num_hits > 1 : err = "uid '{}' found multiple times in data frame.\n" . format ( uid ) raise ValueError ( err ) else : pass
Make sure uid is in dataframe and is unique.
Make sure uid is in dataframe and is unique .
"""
    Make sure uid is in dataframe and is unique.
    """
df
uid