(data_bin)
return y
extract y label from Table
extract y label from Table
extract y label from Table
def get_label(data_bin):
        """
        extract y label from Table
        """
        y = data_bin.mapValues(lambda instance: instance.label)
        return y
def get_label ( data_bin ) : y = data_bin . mapValues ( lambda instance : instance . label ) return y