old_scripts/basicML.py
def label_data(label, data):
    """
    Takes the labels for and a dataframe of the simulation results; 
    adds these labels as additional columns to the dataframe.

    Parameters
    ----------
    label : dict representing the labels for a simulation
    data : dataframe of simulation results

    Returns
    -------
    data : dataframe of simulation results + label entries in columns

    """
    
    col = len(data.columns)
    data.insert(loc = col, column = 'ReactorType', value = label['ReactorType'])
    data.insert(loc = col+1, column = 'Enrichment', value = label['Enrichment'])
    burnup = burnup_label(label['Burnup'], label['CoolingInts'])
    data.insert(loc = col+2, column = 'Burnup', value = burnup)
    return data

    Takes the labels for and a dataframe of the simulation results; 
    adds these labels as additional columns to the dataframe.

    Parameters
    ----------
    label : dict representing the labels for a simulation
    data : dataframe of simulation results

    Returns
    -------
    data : dataframe of simulation results + label entries in columns

    
Takes the labels for and a dataframe of the simulation results;
adds these labels as additional columns to the dataframe.

Parameters

label : dict representing the labels for a simulation
data : dataframe of simulation results

Returns

data : dataframe of simulation results + label entries in columns
Takes the labels for and a dataframe of the simulation results ; adds these labels as additional columns to the dataframe . Parameters label : dict representing the labels for a simulation data : dataframe of simulation results Returns data : dataframe of simulation results + label entries in columns
def label_data(label, data):
    col = len(data.columns)
    data.insert(loc = col, column = 'ReactorType', value = label['ReactorType'])
    data.insert(loc = col+1, column = 'Enrichment', value = label['Enrichment'])
    burnup = burnup_label(label['Burnup'], label['CoolingInts'])
    data.insert(loc = col+2, column = 'Burnup', value = burnup)
    return data
def label_data ( label , data ) : col = len ( data . columns ) data . insert ( loc = col , column = 'ReactorType' , value = label [ 'ReactorType' ] ) data . insert ( loc = col + 1 , column = 'Enrichment' , value = label [ 'Enrichment' ] ) burnup = burnup_label ( label [ 'Burnup' ] , label [ 'CoolingInts' ] ) data . insert ( loc = col + 2 , column = 'Burnup' , value = burnup ) return data
Takes the labels for and a dataframe of the simulation results;
adds these labels as additional columns to the dataframe.
Takes the labels for and a dataframe of the simulation results ; adds these labels as additional columns to the dataframe .
"""
    Takes the labels for and a dataframe of the simulation results; 
    adds these labels as additional columns to the dataframe.

    Parameters
    ----------
    label : dict representing the labels for a simulation
    data : dataframe of simulation results

    Returns
    -------
    data : dataframe of simulation results + label entries in columns

    """
label
data