def _percent_str(percentages):
    """Convert percentages values into string representations"""
    
    pstr = []
    for percent in percentages:
        if percent >= 0.1:
            pstr.append('%.1f' %percent+' %')
        elif percent >= 0.01:
            pstr.append('%.2f' %percent+' %')
        else:
            pstr.append('%.3f' %percent+' %')
    
    return pstr
dataset/ETHPy150Open taoliu/taolib/Assoc/inout.py/_percent_str/original