AGENT SKILL

dask-index-queries

Build an index for Dask dataframe lookups without assuming unverified partition ordering.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 1
Forks
0

01 前言 Front Matter

name
dask-index-queries
license
MIT
description
Build an index for Dask dataframe lookups without assuming unverified partition ordering.

02 资源文件 4

03 SKILL.md 正文

Dask: indexing data with unknown ordering

Apply Caveman for every task, CocoIndex Code before broad repository navigation, and Crawl4AI for web-page research. Follow docs/agent-tools.md in the repository root and retain the required execution evidence.

This overlay covers a selected index example from the locked Dask skill and its dataframe reference. It was tested with Dask 2026.8.0 and pandas 3.1.0 in the recorded Windows and Linux environments. Other Dask examples and agent performance were not evaluated.

sorted=True is appropriate only when the index column is already sorted in increasing order and partition divisions match the data. Do not infer global ordering from a few rows or from the order inside one partition. If the data's ordering is unknown, allow Dask to construct a sorted index instead.

Query a bounded label range

The following expects a Dask DataFrame ddf with a comparable timestamp column. Supply lower and upper with the same type as that column. The label slice includes both endpoints; choose bounds and time-zone handling to match the data. Ensure the selected result fits in client memory before calling compute().

indexed = ddf.set_index("timestamp")
selected = indexed.loc[lower:upper]
result = selected.compute()

Index construction may inspect data to determine divisions and may shuffle partitions, consuming time, network, disk and memory. It can trigger work before the final compute() call. Index once when repeated lookups justify that cost; benchmark and monitor the actual dataset and scheduler. Confirm that the input index values and their null handling are suitable for the task. Do not set sorted=True or provide divisions unless the ordering and boundaries are established for the complete input.

04 同仓库更多 Skills

strmt7
strmt7/ai_skills_collection_benchmarked

makefile-generator-project-wrappers

Repair Python, Java and generic GNU Make wrappers that report false success, miss changed inputs or clean dependency environments. Preserve the actual project build system and test runner; use when adapting the collection's original Makefile generator.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

makefile-generator-go

Author or repair GNU Make wrappers for Go modules, retaining Go's dependency discovery and build cache. Use when wrapper timestamps hide embedded-resource changes or build failures; preserve the project's existing build system and real test commands.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

strategic-compact-resume

Checkpoint and resume long agent work when context pressure or a handoff could lose constraints, verified progress, or ownership of active jobs.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

makefile-generator-cpp

Author or repair GNU Make builds for C++ executables, preserving compiler/linker flags, header dependencies and real project test contracts. Use the optional scaffold for a flat src directory; retain an existing build system unless the task requires changing it.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

eval-harness-integrity

Design and verify matched coding-agent evaluations when comparing skills, prompts, models, or harnesses using executable acceptance checks and native result evidence.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

eval-harness-evidence

Design and verify matched coding-agent evaluations when comparing skills, prompts, models, or harnesses using executable acceptance checks and native result evidence.

★ 1