Dask DataFrame promises pandas code that runs on all your cores and on data bigger than memory. We read Dask's own advice on when not to use it, timed the same groupby on 30 million invented rows in pandas 3.1.2, Dask 2026.11.0, Polars 2.2.0 and DuckDB 2.0.1 (each the latest on PyPI, all released in November 2026) with each process's peak memory, and ran the pandas habits that behave differently in Dask to show what they print.
The short answer: Dask DataFrame splits a table into many pandas DataFrames and runs pandas-style code on them in parallel, lazily, when you call .compute(). Use it when the data won't fit in memory or one core is too slow and you want to keep pandas code, or when you'll need a cluster. Skip it when the data fits: Dask's own docs say pandas "can often be faster". On our 30-million-row groupby, Dask took 1.48 seconds to pandas' 4.91 but used nearly as much memory, 2.42 GB to 2.82 GB; Polars took 0.16 seconds and DuckDB 0.25. Below about a million rows, Dask was slower than pandas. Checked 2 December 2026.
Fastero
Connect your database. Ask questions. Get dashboards.
Postgres, BigQuery, Snowflake, and 10+ sources — live-connected, AI-powered, no dashboard builder learning curve.
Try free →What is Dask DataFrame?
Dask DataFrame is pandas split into pieces. Dask's docs call it "a collection of many pandas DataFrames", partitioned by row, and every operation you write becomes a task graph that runs only when you ask for a result: "Dask is lazy; when you want an in-memory result add .compute()." Three things follow:
- Each partition is an ordinary pandas DataFrame. Our 30 Parquet files became 30 partitions of 1 million rows. Dask's best-practices page says "You should aim for partitions that have around 100MB of data each."
- A scheduler runs the graph in parallel. On one machine the default for DataFrames is a thread pool, which the docs say "only provides parallelism when your computation is dominated by non-Python code": true of pandas' built-in numeric methods, not of your own Python function in
apply. The distributed scheduler adds worker processes, a dashboard and clusters. - A query planner rewrites your code before it runs. Dask has done query planning since version 2024.03.0: it reads only the columns a query uses, pushes filters into the read and resizes partitions.
Dask vs pandas at a glance
| pandas | Dask DataFrame | |
|---|---|---|
| Data | One DataFrame, all in memory | Many pandas DataFrames, loaded a few at a time |
| Execution | Eager: each line runs now | Lazy: builds a graph, runs on .compute() |
| Cores | Mostly one | All of them on the default thread pool, or a cluster |
| Index | One index, .loc and .iloc |
One per partition; .iloc can't select rows |
Sorting, set_index, groupby().apply |
In memory | A shuffle across partitions, the expensive part of Dask |
| Best for | Data that fits in RAM | Data that doesn't, or pandas code that must scale out |
When to use Dask, and when it's slower
Dask's own docs are direct about it. Dask DataFrames are used when "Your data is too big" or "Your computation is too slow and other techniques don’t work", and "You should probably stick to just using pandas if" your data is small or your computation is fast (subsecond). The best-practices page goes further: "For data that fits into RAM, pandas can often be faster and easier to use than Dask DataFrame."
pandas' own scaling guide points the same way from the other side: chunking by hand works for simple jobs, but "Some operations, like pandas.DataFrame.groupby(), are much harder to do chunkwise. In these cases, you may be better switching to a different library that implements these out-of-core algorithms for you." Our guides to pandas running out of memory and reading a large CSV in pandas cover what to try before switching.
Dask's fixed cost is easy to measure. The same in-memory groupby (sum, count and mean of an amount over 8 regions) in pandas and in Dask with 8 partitions, median of 7 runs each. The core of the script:
p = timed(lambda: df.groupby("region").amount.agg(["sum", "count", "mean"]))
d = timed(lambda: ddf.groupby("region").amount.agg(["sum", "count", "mean"]).compute())dask 2026.11.0 pandas 3.1.2
rows pandas Dask, 8 partitions ratio
10,000 1.0 ms 28.4 ms 29.5x
100,000 5.8 ms 30.4 ms 5.2x
1,000,000 49.6 ms 41.3 ms 0.8x
10,000,000 539.2 ms 137.4 ms 0.3xDask spent about 30 milliseconds building and scheduling the graph whatever the size, so it was 29.5 times slower on 10,000 rows, broke even near a million, and was 3.9 times faster at 10 million. If your pandas step takes a fraction of a second, Dask can only make it slower. And it won't rescue a slow apply: the default thread pool can't run Python functions in parallel, and Dask's overview suggests avoiding apply and Python loops "and using a built-in pandas method instead".
Dask vs pandas vs Polars vs DuckDB: the same groupby, measured
We generated 30 million invented orders with DuckDB as 30 Parquet files of 1 million rows each, 477 MB in all: an order ID, one of 1 million customer IDs, one of 8 regions, one of 12 categories, an amount and a date. Then the same summary in each library, from the files to a small DataFrame: revenue, order count and average order, first by region and category (96 groups), then by customer (1 million groups). The code, as we ran it (with keys set to the grouping columns):
# pandas
df = pd.read_parquet("data/orders", columns=keys + ["amount"])
out = df.groupby(keys, observed=True).agg(
revenue=("amount", "sum"), orders=("amount", "size"), avg_order=("amount", "mean")).reset_index()
# Dask
ddf = dd.read_parquet("data/orders/*.parquet", columns=keys + ["amount"])
out = ddf.groupby(keys).agg(
revenue=("amount", "sum"), orders=("amount", "size"), avg_order=("amount", "mean")).compute().reset_index()
# Polars
out = pl.scan_parquet("data/orders/*.parquet").group_by(keys).agg(
pl.col("amount").sum().alias("revenue"), pl.len().alias("orders"),
pl.col("amount").mean().alias("avg_order")).collect()
# DuckDB
out = duckdb.sql(f"""SELECT {k}, sum(amount) AS revenue, count(*) AS orders, avg(amount) AS avg_order
FROM read_parquet('data/orders/*.parquet') GROUP BY {k}""").df()Each run was a fresh Python process: libraries imported first (not timed), then the clock ran from reading the files to the finished DataFrame, and psutil recorded the process's peak memory. One warm-up round, then five rounds with the libraries interleaved, medians below:
| Library | 96 groups: time | 96 groups: memory | 1M groups: time | 1M groups: memory |
|---|---|---|---|---|
| pandas 3.1.2 | 4.91 s | 2.82 GB | 5.69 s | 1.72 GB |
| Dask 2026.11.0 | 1.48 s | 2.42 GB | 4.17 s | 2.34 GB |
| Polars 2.2.0 | 0.16 s | 0.53 GB | 0.76 s | 0.93 GB |
| DuckDB 2.0.1 | 0.25 s | 0.25 GB | 1.38 s | 2.02 GB |

The same groupby from the same Parquet files in four libraries. Invented data, one laptop, medians of 5 runs.
All four returned the same 96 and 1,000,000 groups and the same revenue total, 7,575,373,906.41. What stands out:
- Dask beat pandas by 3.3 times on 96 groups, but only 1.4 times on a million. With few groups, each partition boils down to 96 rows and combining them is free. With a million, each partition's partial result is itself big, and merging 30 of them is work pandas never has to do.
- Dask saved little memory. Its peak was 2.42 GB against pandas' 2.82 GB, and on the customer groupby it used more than pandas. Dask works on one partition per worker thread at a time, and the default here is 16 threads (see below).
- Polars and DuckDB were faster than Dask by 3 to 9 times, on one machine, with no partitions to think about. Polars' streaming engine (
collect(engine="streaming")) gave the same times, 0.17 and 0.77 seconds. DuckDB's 2.02 GB on a million groups is hash tables on 16 threads under its default limit of 80% of RAM; DuckDB larger than memory shows how to cap it and what spilling costs. - Import time isn't in the table. Dask took about 1.1 seconds to import, pandas 0.6 and Polars 0.35, which adds up for short scheduled jobs.
Dask's memory follows its thread count. On the same files, a sum by region and category with the thread pool set to fewer workers, one run each:
| Dask threads | Time | Peak memory |
|---|---|---|
| 16 (the default here) | 1.49 s | 2.34 GB |
| 8 | 1.41 s | 1.40 GB |
| 4 | 2.37 s | 0.88 GB |
| 1 | 5.96 s | 0.36 GB |
On this laptop 8 threads was as fast as 16 with 40% less memory, and 1 thread fit in 0.36 GB, which is Dask's real promise: pandas code in a fixed amount of memory, paid for in time. To set it:
dask.config.set(scheduler="threads", num_workers=8)One laptop and one query shape, so read these as indicative. For more on the alternatives: Polars vs pandas, DuckDB vs Polars, DuckDB vs pandas and, when one machine really isn't enough, Spark vs pandas.
Connect any database. Ask in plain English.
Start free →Dask DataFrame vs pandas DataFrame: the API differences that bite
The API looks like pandas, which is the point and the trap. We ran the usual pandas habits on the same 30 files; all output below is real, from Dask 2026.11.0:
ddf = dd.read_parquet("data/orders/*.parquet")1. Nothing runs until .compute(). A groupby prints a plan, not numbers:
ddf.groupby("region").amount.sum()Dask Series Structure:
npartitions=1
float64
...
Dask Name: sum, 3 expressions.compute() ran it in 0.63 seconds and returned a pandas Series. Call it once, at the end, on the smallest result you need; each call re-reads the files.
2. The index is per partition. Each file kept its own index starting at 0, so loc[0] returned 30 rows, one per file:
ddf.loc[0, ["order_id", "region", "amount"]].compute().head(4) order_id region amount
0 0 North 5.00
0 1000000 Online 107.10
0 2000000 East 473.49
0 3000000 Online 123.05ddf.known_divisions was False, and positional row access doesn't exist:
>>> ddf.iloc[0:5]
NotImplementedError: 'DataFrame.iloc' only supports selecting columns. It must be used like 'df.iloc[:, column_indexer]'.ddf.set_index("customer_id") builds a sorted index you can look up with .loc[42] (2.28 seconds here, a full shuffle). Dask's advice on set_index: "This operation is expensive though, so use it sparingly".
3. head() looks at the first partition only. Customer 0 has 41 orders, but ddf[ddf.customer_id == 0].head(3) returned 2 rows and a warning:
UserWarning: Insufficient elements for `head`. 3 elements requested, only 2 elements available. Try passing larger `npartitions` to `head`.4. Sorting is a shuffle. The docs say "Sorting a parallel dataset requires expensive shuffles and is generally not recommended." Sorting by amount, descending, then taking head(3) took 2.72 seconds; nlargest(3, "amount") gave the same top amount in 0.57.
5. apply needs meta, and only works row-wise. Dask's DataFrame.apply docs: "Only axis=1 is supported (and must be specified explicitly)." Without meta=, Dask runs your function on fake data to guess the output type, and says so:
UserWarning:
You did not provide metadata, so Dask is running your function on a small dataset to guess output types. It is possible that Dask will guess incorrectly.
[how to pass meta= trimmed]groupby(...).apply(...) on a column that isn't the index also triggers a full shuffle; on 1,000 customers it took 1.99 seconds with a similar warning. Prefer groupby().agg() with built-in reductions: Dask reduces each partition first and moves only the partial results.
6. Some methods are missing or approximate.
>>> ddf.amount.median().compute()
NotImplementedError: Dask doesn't implement an exact median in all cases as this is hard to do in parallel. See the `median_approximate` method instead, which uses an approximate algorithm.What published benchmarks say
Two larger benchmarks, both derived from TPC-H, reach different verdicts, and each comes from an interested party. Coiled, which sells hosted Dask, ran Dask, DuckDB, Polars and Spark locally and in the cloud in May 2024 and concluded that "DuckDB and Dask are the most robust choices today", adding: "Locally, Dask is outperformed at small scale by DuckDB and Polars, but performs reliably across all scales." Its post says plainly "we’re also biased towards Dask". Polars' own PDS-H results from May 2025, with Dask on the threads scheduler, found "Polars and DuckDB prove to be in a league of their own, being an order of magnitude faster than Dask and PySpark" at scale factors 10 and 100. Coiled's page now carries a June 2025 note that Polars' streaming engine has been rewritten since its run. Our single groupby agrees with both on one point: on one machine, with data that fits, Dask is not the fastest option.
Where Fastero fits: a bigger machine instead of a cluster
A common reason to reach for Dask is a pandas notebook that ran out of memory. Before rewriting it for partitions, check whether a bigger machine would do: our pandas run peaked at 2.82 GB, which a 16 GB machine holds several times over. Fastero is an AI and data platform where people and AI agents work together on a team's data, and its notebooks run on a server nobody on the team has to manage. From our pricing page, 2 December 2026:
- The standard notebook machine is 1 CPU and 2 GB, on every plan, Free included. A job the size of our pandas run, at 2.82 GB, takes the next size up.
- On Pro, a notebook can move to a bigger machine: 2 CPUs and 8 GB at $0.20 an hour, 4 CPUs and 16 GB at $0.40, or 8 CPUs and 32 GB at $0.80, charged by the second from money added to the balance. An hour on 16 GB costs $0.40, and the same pandas code runs unchanged. Pro's $20 a month doesn't include these machines.
- SQL cells push the heavy part into your database. A SQL cell runs on a saved connection (Postgres, MySQL, SQL Server, Redshift, Oracle or BigQuery) and lands its result in Python as a pandas DataFrame named after the cell, so a groupby over millions of rows can happen in the database and only the summary reaches the notebook.
- Python 3.11 with pandas, SQLAlchemy, seaborn, psycopg2 and the BigQuery client is installed.
- A cron schedule runs the notebook on the server with no browser open, and colleagues sign in to read it; viewers are free.

Scheduling a Fastero notebook whose SQL cell reads a database connection: presets or any cron expression. Sample data.
FAQ
Is Dask faster than pandas?
On data big enough to keep many cores busy, often: our 96-group summary over 30 million rows took 1.48 seconds in Dask against 4.91 in pandas. On small data, no: below about a million rows, Dask's graph and scheduler cost more than they save, and Dask's own docs say pandas "can often be faster" for data that fits in RAM.
When should I use Dask instead of pandas?
When the data doesn't fit in memory or one core is too slow, and you want to keep pandas code and pandas semantics, or you'll need a cluster later. If the data fits in RAM on a bigger machine, that's usually simpler; if you're starting fresh on one machine, Polars or DuckDB were faster in our test.
Is Dask better than Polars?
They solve different problems. On one machine, Polars was 5 to 9 times faster than Dask on our groupby and used less memory. Dask's strengths are that each partition is real pandas, so existing code and libraries carry over, and that the same code runs on a cluster of many machines.
Does Dask use multiple cores?
Yes. The default scheduler for Dask DataFrame is a thread pool with one thread per CPU thread (16 on our 8-core laptop), which parallelizes pandas' built-in numeric operations; Python functions in apply hold the GIL, and Dask's docs suggest the distributed scheduler with processes for those. More threads also means more memory: in our test Dask's peak grew from 0.36 GB on 1 thread to 2.34 GB on 16.
Why is my Dask DataFrame not showing values?
Because nothing has run yet. A Dask DataFrame or Series prints its structure (columns, dtypes, partitions) until you call .compute(), which runs the graph and returns pandas; .head() computes only the first partition.
Can Dask handle data larger than memory?
Yes, on one machine, as long as each partition fits and the operation can work partition by partition or spill. Shuffles for set_index, sort_values and groupby().apply write intermediate data to disk on a single machine. Keep partitions around 100 MB, and remember that each worker thread holds partitions in memory at the same time.
Sources
Read on 2 December 2026:
- Dask docs: Dask DataFrame, best practices, internal design, optimizer, shuffling performance, indexing, scheduling,
DataFrame.apply,DataFrame.sort_values - Polars: streaming, PDS-H benchmark results, May 2025
- Coiled: DataFrames at scale comparison: TPC-H (May 2024, updated June 2025)
- pandas: scaling to large datasets
- PyPI: release dates for dask, pandas, polars and duckdb
- Hands-on: pandas 3.1.2, Dask 2026.11.0, Polars 2.2.0, DuckDB 2.0.1, pyarrow 26.0.1, psutil 7.2.2 and Python 3.14.3 on Windows 11, Intel Core i7-11800H (8 cores, 16 threads), 64 GB RAM, NVMe SSD; 30 million invented rows; a fresh process per run, killed if it passed 3.2 GB.
Try Fastero free: keep your pandas code, run the notebook on a server your team can read, and move it to 16 GB on Pro by the hour when it outgrows 2 GB. No credit card required.
Fastero Dev Team