Compute this dask collection. This turns a lazy Dask collection into its in-memory equivalent. For example a Dask array turns into a NumPy array and a Dask dataframe turns into a Pandas dataframe. The entire dataset must fit into memory before calling this operation.
(self, **kwargs: Any)
| 266 | |
| 267 | @abc.abstractmethod |
| 268 | def compute(self, **kwargs: Any) -> Any: |
| 269 | """Compute this dask collection. |
| 270 | |
| 271 | This turns a lazy Dask collection into its in-memory |
| 272 | equivalent. For example a Dask array turns into a NumPy array |
| 273 | and a Dask dataframe turns into a Pandas dataframe. The entire |
| 274 | dataset must fit into memory before calling this operation. |
| 275 | |
| 276 | Parameters |
| 277 | ---------- |
| 278 | scheduler : string, optional |
| 279 | Which scheduler to use like "threads", "synchronous" or |
| 280 | "processes". If not provided, the default is to check the |
| 281 | global settings first, and then fall back to the |
| 282 | collection defaults. |
| 283 | optimize_graph : bool, optional |
| 284 | If True [default], the graph is optimized before |
| 285 | computation. Otherwise the graph is run as is. This can be |
| 286 | useful for debugging. |
| 287 | kwargs : |
| 288 | Extra keywords to forward to the scheduler function. |
| 289 | |
| 290 | Returns |
| 291 | ------- |
| 292 | The collection's computed result. |
| 293 | |
| 294 | See Also |
| 295 | -------- |
| 296 | dask.compute |
| 297 | |
| 298 | """ |
| 299 | raise NotImplementedError("Inheriting class must implement this method.") |
| 300 | |
| 301 | @abc.abstractmethod |
| 302 | def persist(self: CollType, **kwargs: Any) -> CollType: |
nothing calls this directly
no outgoing calls
no test coverage detected