        ret_list = p.map(func, [group for name, group in dfGrouped])
    return ret_list


def create_output_dir(directory_name):
    try:
        os.mkdir(directory_name)
    except OSError:
        print('Output folder at {} already exists'.format(args.output_folder))