def run(self):

        for row in self.input.rows():
            for i in self.string_indexes:
                value = row[i]
                if type(value) == str or type(value) == unicode:
                    value = value.strip()
                elif value:
                    value = unicode(value)

                if not value:
                    value = self.string_none

                row[i] = value

            for i in self.integer_indexes:
                value = row[i]
                if type(value) == str or type(value) == unicode:
                    value = re.sub(r"\s", "", value.strip())

                if value is None:
                    value = self.integer_none
                else:
                    try:
                        value = int(value)
                    except __HOLE__:
                        value = self.integer_none

                row[i] = value

            for i in self.float_indexes:
                value = row[i]
                if type(value) == str or type(value) == unicode:
                    value = re.sub(r"\s", "", value.strip())

                if value is None:
                    value = self.float_none
                else:
                    try:
                        value = float(value)
                    except ValueError:
                        value = self.float_none

                row[i] = value

            self.put(row)
dataset/ETHPy150Open Stiivi/brewery/brewery/nodes/field_nodes.py/CoalesceValueToTypeNode.run