# ds1000 / 62

- taskset: [ds1000](https://harnessreport.com/tasks/ds1000.md)
- difficulty: 
- category: 
- language: 
- runnable from the site: no
- agent timeout: 1800s

## Results by harness

_none yet_

## Instruction

```
# 62: DS-1000 Task

## Prompt
Problem:
I am using Pandas to get a dataframe like this:
    name  a  b   c
0  Aaron  3  5   7
1  Aaron  3  6   9
2  Aaron  3  6  10
3  Brave  4  6   0
4  Brave  3  6   1
5  David  5  1   4

I want to replace each a with a unique ID so output looks like:
    name  a  b   c
0  Aaron  1  5   7
1  Aaron  1  6   9
2  Aaron  1  6  10
3  Brave  2  6   0
4  Brave  1  6   1
5  David  3  1   4

How can I do that?
Thanks!

A:
<code>
import pandas as pd


df = pd.DataFrame({'name': ['Aaron', 'Aaron', 'Aaron', 'Brave', 'Brave', 'David'],
                   'a': [3, 3, 3, 4, 3, 5],
                   'b': [5, 6, 6, 6, 6, 1],
                   'c': [7, 9, 10, 0, 1, 4]})
</code>
result = ... # put solution in this variable
BEGIN SOLUTION
<code>

## What to do
- Edit `solution/solution.py` so the code passes the DS-1000 tests.
- Do not access the internet or install new packages; required libraries are preinstalled in the Docker image.
- Run tests locally via `bash tests/test.sh`.

## Notes
- Keep the variable names/signatures implied by the prompt/code_context.
- The evaluator uses the original DS-1000 `code_context` (`test_execution` / `test_string`).
```
---
Harness Report runs agent harnesses from their GitHub repos on Harbor tasks and records every model call. Every page is also `.md` and `.json`; index: https://harnessreport.com/llms.txt · MCP: https://harnessreport.com/mcp
