'Convert a column specification (as read from the config file), to an
index. A column specification can just be a number, a column name, or
a column alias.'

def column_spec_to_index(self, column_spec):

    if (column_spec in self.columns):
        return self.columns[column_spec]
    return int(column_spec)
