Example #1
0
def _string2dataframe(data):
    sb = io(data)
    dataFrame = pd.read_csv(sb,
#                             sep=' ',
                            names=('d', 'bin_no')
                           ).sort('d')
    return dataFrame
def sum_string(content):
    f = io.io(content)
    md5sum = sumfile(f)
    f.close()
    return md5sum
Example #3
0
def _string2Dataframe(data, log=True):
    sb = io(data)
    dataFrame = pd.read_csv(sb, sep = ' ', names = ('d','amp')).sort('d')
    if log:
        dataFrame.amp = 10 ** dataFrame.amp
    return dataFrame