dask

Scale pandas and NumPy workflows to larger-than-memory datasets with parallel and distributed computing.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/gracefullight/cnn --skill dask-gracefullight
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dask
Source: https://github.com/gracefullight/cnn/tree/main/.agents/skills/dask
Command: npx skills add https://github.com/gracefullight/cnn --skill dask-gracefullight

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dask, distributed, pandas, numpy, and includes references (resource) components.

What problem does it solve? Pandas and NumPy fail when datasets exceed available RAM or when computations take too long on a single core. This Skill provides guidance for scaling existing Python data workflows to larger-than-memory datasets and multi-machine clusters using Dask's familiar APIs. ## Core Features & Use Cases - Parallel DataFrames and Arrays: Scale pandas and NumPy operations across cores or machines with lazy evaluation and chunked execution. - Unstructured Data Processing: Use Dask Bags to clean and transform text, JSON, and log files before converting to structured DataFrames. - Custom Parallel Workflows: Build dynamic task pipelines with Futures, actors, and distributed coordination primitives. - Use Case: Imagine you have 500 GB of CSV logs that crash pandas. Use this Skill to read them with dd.read_csv('logs/*.csv'), filter and aggregate in parallel, and write results to Parquet without exceeding memory. ## Quick Start Use the dask skill to read all CSV files in my data folder as a single DataFrame and compute the average value grouped by category.

Frequently Asked Questions about dask

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I process a CSV file larger than RAM in Python?▼

Use dask.dataframe's read_csv to load the file lazily in partitions, then apply pandas-like operations and call compute() only on the final result. Dask processes chunks in parallel without loading the entire dataset into memory.

Dask vs pandas: when should I switch?▼

Switch to Dask when your dataset exceeds available RAM or pandas computations take too long despite optimization. If data fits comfortably in memory and operations complete in seconds, pandas remains the better choice.

Dask vs polars vs vaex: which should I use?▼

Use Dask for scaling existing pandas/NumPy code across clusters or for distributed ML. Use vaex for out-of-core analytics on a single machine, and polars for maximum in-memory speed on data that fits in RAM.

Which Dask scheduler should I use for my workload?▼

Use threads (the default) for NumPy and pandas operations that release the GIL, processes for pure Python code, synchronous for debugging with pdb, and the distributed scheduler when you need the monitoring dashboard or multi-machine clusters.

Why does my Dask computation run out of memory?▼

Memory errors usually come from chunks that are too large or too many persisted intermediate results. Decrease chunk sizes to roughly 100 MB each, persist strategically, and delete cached objects when finished.

Why is my Dask job slow to start computing?▼

A slow start typically means the task graph is too large, often millions of tiny tasks. Increase chunk sizes, fuse operations with map_partitions or map_blocks, and check graph size with len(ddf.__dask_graph__()).