def __next__(self):
        """
        Returns the next value from the Instance object.
        
        :return: the next value, depending on the attribute that can be either a number of a string
        :rtype: str or float
        """
        if self.col < self.data.num_attributes:
            index = self.col
            self.col += 1
            if self.data.dataset.attribute(index).is_numeric:
                return self.data.get_value(index)
            else:
                return self.data.get_string_value(index)
        else:
            raise StopIteration()
def __next__ ( self ) : if self . col < self . data . num_attributes : index = self . col self . col += 1 if self . data . dataset . attribute ( index ) . is_numeric : return self . data . get_value ( index ) else : return self . data . get_string_value ( index ) else : raise StopIteration ( )
Returns the next value from the Instance object.
        
        :return: the next value, depending on the attribute that can be either a number of a string
        :rtype: str or float