def is_number(something):
    """
    Helper vectorized function to test
    if a value is or represents a number.
    """
    try:
        int(something)
        return True
    except ValueError:
        return False