import wrangledata


def main():
    headers, data = wrangledata.get_train_data()
    # sort by the painterID
    data = sorted(data, key=lambda x: x[1])
    with open(wrangledata.SORTED_INFO, 'w+') as writer:
        for line in data:
            fileline = ','.join(line) + '\n'
            writer.write(fileline)


if __name__ == '__main__':
    main()
e8e0892f1fa1c68f7b2647003a28ab638863c654
<mask token>

<mask token>


def main():
    headers, data = wrangledata.get_train_data()
    data = sorted(data, key=lambda x: x[1])
    with open(wrangledata.SORTED_INFO, 'w+') as writer:
        for line in data:
            fileline = ','.join(line) + '\n'
            writer.write(fileline)


<mask token>

<mask token>


def main():
    headers, data = wrangledata.get_train_data()
    data = sorted(data, key=lambda x: x[1])
    with open(wrangledata.SORTED_INFO, 'w+') as writer:
        for line in data:
            fileline = ','.join(line) + '\n'
            writer.write(fileline)


if __name__ == '__main__':
    main()

import wrangledata


def main():
    headers, data = wrangledata.get_train_data()
    data = sorted(data, key=lambda x: x[1])
    with open(wrangledata.SORTED_INFO, 'w+') as writer:
        for line in data:
            fileline = ','.join(line) + '\n'
            writer.write(fileline)


if __name__ == '__main__':
    main()

import wrangledata


def main():
    headers, data = wrangledata.get_train_data()
    # sort by the painterID
    data = sorted(data, key=lambda x: x[1])
    with open(wrangledata.SORTED_INFO, 'w+') as writer:
        for line in data:
            fileline = ','.join(line) + '\n'
            writer.write(fileline)


if __name__ == '__main__':
    main()