(self, item)
return ''.join(output)
Generate a friendly looking label based on a string.

        :param item: Str value to clean up
        :return: Cleaned up label based on a key
Generate a friendly looking label based on a string.
Generate a friendly looking label based on a string .
def _gen_label(self, item):
        """Generate a friendly looking label based on a string.

        :param item: Str value to clean up
        :return: Cleaned up label based on a key
        """
        output = list()
        for idx, chr in enumerate(item):
            if chr.isupper():
                output.append(' ')
            if idx == 0:
                chr = chr.upper()
            output.append(chr)
        return ''.join(output)
def _gen_label ( self , item ) : output = list ( ) for idx , chr in enumerate ( item ) : if chr . isupper ( ) : output . append ( ' ' ) if idx == 0 : chr = chr . upper ( ) output . append ( chr ) return '' . join ( output )