hope all is well! I have hopefully a simple question.. I am trying to convert a double list comprehension line in my code to something that dask can handle (so it can speed up). The code looks like the the following :
np.array([np.array([x[1] for x in Function(subList)]) for subList in List])
This will output a two dimensional array, with the rows equivalent to the amount of subLists in List, and columns equivalent to the length of the Function output. My questions is how can I use Dask to represent this? My concern is that if the number of SubLists or length of Function output (or both) gets very large, this line can take up a lot of time. Therefore if I can somehow parallelize this, it would be ideal.
Any advice would be greatly appreciated.