import dask.dataframe as dd if __name__ == '__main__': import glob filenames = glob.glob('DUDE/all/*/ligands.parquet') ddf = dd.read_parquet(filenames) ddf = ddf.repartition(partition_size='1M') ddf.to_parquet('data/dude')