Michal Mucha
06/02/2021, 3:54 PMKevin Kho
from dask.distributed import worker_client
@task
def calling_compute_in_a_task(filepath):
with performance_report(filename="dask-report.html"):
with worker_client():
df = dd.read_csv(filepath)
return df.describe().compute()
Kevin Kho
Michal Mucha
06/02/2021, 4:02 PMMichal Mucha
06/02/2021, 4:03 PM