<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unisim_csv_formatting(path, fname):
 """ Remove some useless stuff from the head of a csv file generated by unisim and returns a pandas dataframe """

    with open(path+fname, 'r') as fobj:
        data = fobj.readlines()
        header = data[9].split(",")[:-1]
        unit_of_measures = data[10].split(",")[:-1]
    data = pd.read_csv(path+fname,
                       skiprows=10,
                       index_col=0,
                       usecols=(range(0, len(header))),
                       na_values=('Shutdown', 'Bad',
                                  'I/O Timeout', 'Scan Timeout'))
    data.columns = header[1:]
    data.unit = unit_of_measures[1:]
    return data