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