lama/stats/permutation_stats/run_permutation_stats.py
def add_label_names(df: pd.DataFrame, label_info: Path) -> pd.DataFrame:
    """
    Added label names to hits dataframe with merge on label metadata
    """
    label_df = pd.read_csv(label_info, index_col=0)

    df = df.merge(right=label_df[['label_name']], left_index=True, right_index=True)

    return df

    Added label names to hits dataframe with merge on label metadata
    
Added label names to hits dataframe with merge on label metadata
Added label names to hits dataframe with merge on label metadata
def add_label_names(df: pd.DataFrame, label_info: Path) -> pd.DataFrame:
    label_df = pd.read_csv(label_info, index_col=0)
    df = df.merge(right=label_df[['label_name']], left_index=True, right_index=True)
    return df
def add_label_names ( df : pd . DataFrame , label_info : Path ) -> pd . DataFrame : label_df = pd . read_csv ( label_info , index_col = 0 ) df = df . merge ( right = label_df [ [ 'label_name' ] ] , left_index = True , right_index = True ) return df
Added label names to hits dataframe with merge on label metadata
Added label names to hits dataframe with merge on label metadata
"""
    Added label names to hits dataframe with merge on label metadata
    """
df
pd.DataFrame
label_info
Path