import operator


def _dataframe2logo( data ):
    """Reshape data to fit LOGO plot
    """
    aa = list(data)
    odata = []
    for _, pos in data.iterrows():
        pdata = []
        for k in aa:
            if pos[k] > 0.0000000:
                pdata.append( ( k, float(pos[k]) ) )
        odata.append(sorted(pdata, key=operator.itemgetter(1, 0)))
    return odata