old_scripts/basicML.py
def format_df(filename):
    """
    This takes a csv file and reads the data in as a dataframe.

    Parameters
    ----------
    filename : str of simulation output in a csv file

    Returns
    -------
    data : pandas dataframe containing csv entries

    """
    
    data = pd.read_csv(filename).T
    data.columns = data.iloc[0]
    data.drop(data.index[0], inplace=True)
    return data

    This takes a csv file and reads the data in as a dataframe.

    Parameters
    ----------
    filename : str of simulation output in a csv file

    Returns
    -------
    data : pandas dataframe containing csv entries

    
This takes a csv file and reads the data in as a dataframe.
Parameters

filename : str of simulation output in a csv file

Returns

data : pandas dataframe containing csv entries
This takes a csv file and reads the data in as a dataframe . Parameters filename : str of simulation output in a csv file Returns data : pandas dataframe containing csv entries
def format_df(filename):
    data = pd.read_csv(filename).T
    data.columns = data.iloc[0]
    data.drop(data.index[0], inplace=True)
    return data
def format_df ( filename ) : data = pd . read_csv ( filename ) . T data . columns = data . iloc [ 0 ] data . drop ( data . index [ 0 ] , inplace = True ) return data
This takes a csv file and reads the data in as a dataframe.
This takes a csv file and reads the data in as a dataframe .
"""
    This takes a csv file and reads the data in as a dataframe.

    Parameters
    ----------
    filename : str of simulation output in a csv file

    Returns
    -------
    data : pandas dataframe containing csv entries

    """
filename