Since it .persist()caches data in the background, I wonder if it is possible to wait until the caching is complete, and then perform the following steps. Also, is there a way to get a progress bar for the caching process? Many thanks
.persist()
Yes, the features you are looking for are exactly named waitand progress.
wait
progress
from dask.distributed import wait, progress
The function progressaccepts any object as an icon and displays a progress bar.
>>> progress(x) [XXXXXXX................] 5.2 seconds
IPython, IPython. IPython Python, progress .
Jupyter, wait, .
wait(x)
http://distributed.readthedocs.io/en/latest/api.html#distributed.client.wait http://distributed.readthedocs.io/en/latest/api.html#distributed.diagnostics.progress
Source: https://habr.com/ru/post/1668066/More articles:Error connecting adb on Android Things - androidUsing @ is available with saved properties - iosHow to draw a WrappedArray [WrappedArray [Float]] in an Array [Array [Float]] in a spark (scala) - arraysWhy is the maximum amount of sub-barrier brute force O (n ^ 2)? - arraysSaving data to a worksheet - vbaDifficulty Challenges - algorithmAngular 2 typescript Problem of type d3: property 'x' does not exist in type '[number, number]' - angularDelphi Grid: How to get selectedrows count on the fly - delphiAssign columns parallel to the data table. - parallel-processingPassing typedef method as a pointer function - c ++All Articles