How to split a csv file into multiple files using Dask?
The bellow code seems to write to one file only which takes a long time to write the full thing. I believe writing to multiple files will be faster.
import dask.dataframe as ddf
import dask
file_path = "file_name.csv"
df = ddf.read_csv(file_path)
futs = df.to_csv(r"*.csv", compute=False)
_, l = dask.compute(futs, df.size)