{"schemaVersion":"1.0","record":{"label":"Dask","description":"Python parallel-computing library with partitioned dataframe analytics and local or distributed execution.","aliases":["Dask DataFrame"],"kind":"software","website":"https://www.dask.org/","overview":"Dask is a Python parallel-computing library. Its DataFrame collection coordinates partitioned pandas tables for analytical work on a single machine or distributed cluster, using deferred computations rather than immediately materializing every intermediate result.","license":"Open-source software under the New BSD license.","lifecycle":"active","example":false,"features":[{"name":"Partitioned dataframe analysis","status":"supported","detail":"Coordinates pandas partitions locally or across a cluster.","useCase":"Parallel and larger-than-memory tabular analysis","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://docs.dask.org/en/stable/dataframe.html","locator":"Partitioned pandas and deferred execution","retrievedAt":"2026-10-07T17:08:17Z","kind":"vendor"}]},{"name":"pandas indexing compatibility","status":"limited","detail":"DataFrame.iloc selects columns but does not support selecting particular rows by position.","useCase":"Parallel and larger-than-memory tabular analysis","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://docs.dask.org/en/stable/dataframe-indexing.html","locator":"Positional row selection restriction","retrievedAt":"2026-10-07T17:08:17Z","kind":"vendor"}]},{"name":"Result materialization","status":"limited","detail":"compute creates an in-memory pandas result that must fit available memory.","useCase":"Parallel and larger-than-memory tabular analysis","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://docs.dask.org/en/stable/generated/dask.dataframe.DataFrame.compute.html","locator":"Materialized result must fit memory","retrievedAt":"2026-10-07T17:39:00Z","kind":"vendor"}]}],"alternatives":[],"slug":"dask","draftAlternatives":[{"targetSlug":"pandas","status":"limited","detail":"Can replace pandas execution for partitionable large-table transformations, joins and aggregates. Deferred execution, indexing restrictions and partition costs require adaptation.","useCase":"Parallel and larger-than-memory tabular analysis","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://docs.dask.org/en/stable/dataframe.html","locator":"Partitioned pandas and deferred execution","retrievedAt":"2026-10-07T17:08:17Z","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/dataframe-indexing.html","locator":"Positional row selection restriction","retrievedAt":"2026-10-07T17:08:17Z","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/dataframe-best-practices.html","locator":"Shuffling, persist and partition overhead","retrievedAt":"2026-10-07T17:08:17Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/dask/dask","locator":"Parallel analytics and New BSD license","retrievedAt":"2026-10-07T17:08:17Z","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/dataframe.html","locator":"Partitioned pandas and deferred execution","retrievedAt":"2026-10-07T17:08:17Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/dask/dask","locator":"Parallel analytics and New BSD license","retrievedAt":"2026-10-07T17:08:17Z","id":"repo","title":"Dask repository","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/dataframe.html","locator":"Partitioned pandas and deferred execution","retrievedAt":"2026-10-07T17:08:17Z","id":"home","title":"Dask DataFrame","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/dataframe-design.html","locator":"Partitions, divisions and output metadata","retrievedAt":"2026-10-07T17:08:38Z","id":"design","title":"DataFrame design","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/dataframe-best-practices.html","locator":"Shuffling, persist and partition overhead","retrievedAt":"2026-10-07T17:08:17Z","id":"best","title":"DataFrame best practices","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/dataframe-indexing.html","locator":"Positional row selection restriction","retrievedAt":"2026-10-07T17:08:17Z","id":"index","title":"DataFrame indexing","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/generated/dask.dataframe.DataFrame.compute.html","locator":"Materialized result must fit memory","retrievedAt":"2026-10-07T17:39:00Z","id":"compute","title":"DataFrame.compute","kind":"vendor"},{"url":"https://docs.dask.org/en/stable/install.html","locator":"Optional collection and distributed dependencies","retrievedAt":"2026-10-07T17:07:57Z","id":"install","title":"Dask installation","kind":"vendor"}],"overviewCitations":["repo","home"],"licenseCitations":["repo"],"sections":[{"id":"execution","heading":"Execution model","paragraphs":[{"id":"execution-detail","content":[{"text":"Dask DataFrame presents familiar operations for filtering, joining and aggregating tables while representing the work lazily. Its partitions are pandas objects arranged along an index, potentially held on different machines or storage. A compute call turns the requested collection into its in-memory equivalent. This allows large inputs to be reduced before a smaller result is brought back into ordinary pandas analysis."}],"citations":["home","compute"]}]},{"id":"metadata","heading":"Partitions and metadata","paragraphs":[{"id":"metadata-detail","content":[{"text":"Each collection tracks column names and data types, as well as index boundaries called divisions. Known divisions help identify which partitions contain requested labels. When those boundaries are unknown, operations that require sorted partitions may need sorting. User-defined functions may also need explicit output metadata: inferring types from synthetic sample data can fail or be expensive."}],"citations":["design"]}]},{"id":"indexing","heading":"Compatibility boundaries","paragraphs":[{"id":"indexing-detail","content":[{"text":"The pandas-like interface is not an unconditional promise that all pandas programs run unchanged. Dask does not track partition lengths in a way that supports arbitrary positional row selection through DataFrame.iloc. That interface accepts a full-row slice with column selection, while particular positional rows raise an error. Partition-level selection is available, but selecting a partition is different from selecting a global row number."}],"citations":["index"]}]},{"id":"costs","heading":"Shuffling and caching","paragraphs":[{"id":"costs-detail","content":[{"text":"Setting an index or joining on non-index columns may require an expensive shuffle. Persisting a filtered or indexed intermediate can avoid repeated work, but the documentation warns that persistence blocks later projection and filter pushdown across that boundary. Partition sizes also matter: tiny partitions burden scheduling, while large partitions must fit comfortably in worker memory. Parallelism does not remove these layout decisions."}],"citations":["best"]}]},{"id":"capacity","heading":"Materialization and installation","paragraphs":[{"id":"capacity-detail","content":[{"text":"Calling compute on a DataFrame returns a pandas DataFrame, and the entire computed result must fit in memory. A distributed input can therefore still produce an oversized local output. Dask installation separates optional dependencies for collections and distributed execution, so the installed components must match the workflow. The library is New BSD licensed; machines and any separately selected hosting services remain operational requirements."}],"citations":["compute","install","repo"]}]},{"id":"substitution","heading":"Substitution considerations","paragraphs":[{"id":"substitution-detail","content":[{"text":"Dask can substitute for "},{"text":"pandas","targetSlug":"pandas"},{"text":" execution when a workload benefits from partitioning or distributed resources and its operations are supported. It is usually unnecessary for small, already-fast computations; Dask's own guide suggests retaining pandas when appropriate. A migration should check output types, indexing assumptions and shuffle costs rather than treating more workers as proof of a speedup."}],"citations":["home","best","index"]}]}]},"id":"Q739","revision":787,"updatedAt":"2026-10-13T07:27:59Z","sourceUrl":"https://substitutefor.net/entities/Q739?revision=787"}}