def _votes(self, val):
        """
        Returns cleaned version of votes or 0 if it's a non-numeric value.
        """
        if type(val) is str:
            if val.strip() == '':
                return 0

        try:
            return int(float(val))
        except __HOLE__:
            # Count'y convert value from string
            return 0
dataset/ETHPy150Open openelections/openelections-core/openelex/us/nh/load.py/NHBaseLoader._votes