def get_percent(key, row):
    """Reads a percentage from a row."""
    if key in row and row[key]:
        percent = row[key]
        if '%' in percent:
            return float(percent.replace('%', '')) / 100.0
        else:
            return float(percent)
    else:
        return None