def parse(string):
    """Parse string of shape "[[1,2],[3,4]]" to list of float"""
    lst = string.replace("[", "").replace("]", "").split(",")
    xs, ys = zip(*[[float(lst[i]), float(lst[i+1])]
                   for i in range(0, len(lst), 2)])
    return list(xs), list(ys)