def _int(v):
    """Convert to int for excel, but default to original value."""
    try:
        if v is None or v == '':
            return ''
        if type(v) is str:
            return int(float(v.replace(',', '')))
        return int(v)
    except ValueError:
        return v
