Download README.md from eltociear/pandas-tasks-v1: direct link, hf CLI and curl.
- Browser
- Download file 3.08 kB
-
https://huggingface.co/datasets/eltociear/pandas-tasks-v1/resolve/main/README.md
- Command line
-
hf download hf://datasets/eltociear/pandas-tasks-v1/README.md
-
curl -L -o README.md https://huggingface.co/datasets/eltociear/pandas-tasks-v1/resolve/main/README.md
license: mit
task_categories:
- text-generation
language:
- en
tags:
- pandas
- dataframe
- data-manipulation
- rl-environment
- verifiers
- code
size_categories:
- n<1K
pandas-tasks-v1
Task dataset for a pandas RL / eval environment, in the shape used by the Prime Intellect Environments Hub.
43 pandas DataFrame manipulation tasks across 6 categories. Each task gives the model one or
more input frames and an instruction; the answer is the frame left in df, graded with
pandas.testing.assert_frame_equal against a reference result. Grading is fully
deterministic — no LLM judge, no external API.
| Category | Tasks | Covers |
|---|---|---|
| transformation | 10 | derived columns, conditional binning, projection, renaming, sorting, filtering, window ranks, string ops, top-n, casting |
| cleaning | 8 | missing values, duplicates, whitespace/case, group-wise imputation, date coercion, outliers, column drops |
| aggregation | 8 | sums, means, multi-key counts, named aggregations, per-group top row, broadcast transforms, nunique |
| joins | 6 | inner, left, full outer, anti, semi, lookup-with-default |
| timeseries | 6 | resampling, lags, rolling means, datetime component extraction, date filters, diffs |
| reshaping | 5 | melt, pivot_table, crosstab, distinct values, melt+filter |
Fields
| Field | Description |
|---|---|
task_id |
stable id, e.g. pandas-017 |
category |
one of the six above |
prompt |
the natural-language instruction shown to the model |
input_data |
JSON object mapping frame name (df, or df1/df2 for joins) to a serialised frame |
expected_output |
the serialised reference result |
Frames are serialised as {"data": <to_json orient="split">, "dtypes": {col: dtype}}. The
dtype map is carried explicitly because to_json alone loses dtypes (int32 returns as int64,
datetimes as strings) and the reward compares dtypes.
How it was built, and why you can trust the answer key
Tasks are defined as (deterministic input frames, instruction, reference solution). The expected output is computed by executing the reference solution, never written by hand, so the answer key cannot drift from the instruction.
Every task is then independently verified:
- the reference solution runs without error and returns a DataFrame
- it is deterministic (executed twice, compared with
assert_frame_equal) - the result is non-empty
- the result is not identical to the input (identity tasks carry no signal)
- both the result and every input frame reproduce exactly through the serialisation round-trip, dtypes included
All 43 tasks pass. The builder and its verifier are open:
build_tasks.py.
Notes
Because grading is an exact frame comparison, column order, row order, the index and dtypes all matter. Prompts state the required index handling and any non-obvious dtype explicitly, so a correct solution is never ambiguous.