def _get_value_for_column(self, key_tuple, raw_row, col):
        # Given a column, and a row dictionary.. returns the value
        # of the field corresponding with that column.
        try:
            header = self.header.col_lookup(col)
        except __HOLE__:
            logger.error("Unexpected: column %s has no header", col)
            return ""

        if header in self.key_column_headers:
            key_dict = dict(zip(self.key_column_headers, key_tuple))
            key_val = key_dict[header]
            if key_val.isdigit() and not key_val.startswith('0'):
                # Do not prefix integers so that the key column can be sorted 
                # numerically.
                return key_val
            return "'%s" % key_val
        elif header in raw_row:
            return raw_row[header]
        elif header in self.header_to_ref_formula:
            return self.header_to_ref_formula[header]

        return ""
dataset/ETHPy150Open mbrenig/SheetSync/sheetsync/__init__.py/Sheet._get_value_for_column