Using Pycharm Community 2018.1.4
Python 3.6
Dask 2.8.1
Trying to implement dask delayed on some of my methods and getting an error
AttributeError: module 'dask' has no attribute 'delayed'.
This is obviously not true so I am wondering what I am doing wrong. My implementation structure is as follows:
import dask
def main()
for i, fn in enumarate(filenames):
data = {}
for x in range(0,2):
data.update(dask.delayed(load_data)(fn, x))
succes_flag = dask.delayed(execute_analytic)(data)
if success_flag == 1:
print("success")
else:
print("fail")
def load_data(filename,selector):
def execute_analytic(data)
if __name__ == '__main__':
dask.compute(main())
Essentialy, I have a bunch of data files, which are independant of each other and so I want to run them in parallel instead of sequentially through a for loop, which i was doing if you take the dask.delayed out.
Am i fundamentally missing anything in the above implementation of dask delayed?