# Dataset value mapper

- Human page: https://happytails.ai/en/data-tools/dataset-value-mapper/
- Markdown: https://happytails.ai/en/data-tools/dataset-value-mapper.md
- Structured JSON: https://happytails.ai/agents/en/data-tools/dataset-value-mapper/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `dataset-value-mapper` |
| Category | data-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Automatic updates after valid input or file selection. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Apply an explicit replacement dictionary to one column. Download the unmatched-value report with occurrence counts and first source-record numbers. Duplicate source mappings are rejected; no value is guessed or silently discarded. Use a header row with unique column names. Up to 1,000,000 input characters, 10,000 data records, 100 columns and 100,000 cells. Strings and spaces are preserved. Output CSV uses commas and quotes every cell. Protect formulas prefixes risky output cells with an apostrophe; choose Preserve original cells only for trusted machine processing. Runs on your device.

### Inputs and settings

Text input: Your text.

Example or placeholder shown in the interface (not a validated fixture):

```text
Type or paste your input…
```

Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `delimiter` | Input CSV separator | select | "," | Allowed: ,, ;, 	 |
| `column` | Column to map | text | "status" |  |
| `mapping` | Replacement dictionary | textarea | "from,to\npending,Waiting\ndone,Complete" |  |
| `unmapped` | Unmapped values | select | "Keep original" | Allowed: Keep original, Replace with empty, Stop with error |
| `exportMode` | Spreadsheet formula handling | select | "Protect formulas" | Allowed: Protect formulas, Preserve original cells |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Select a column and provide a comma-separated replacement CSV with exactly the headers from,to. Each source value must appear once in the dictionary. Matching is exact, case-sensitive and does not trim spaces. An empty source value is allowed. Values in every other column stay unchanged. Keep unmatched values as they are, replace them with empty strings, or stop with an error until the dictionary is complete. The unmatched-values CSV lists each missing value, its record count and its first source-record number. Nothing is guessed from similar spelling or inferred types. Compare the mapped, changed and unmatched record counts with the result preview. Download the mapped CSV, unmatched-values CSV and JSON report. Default formula protection prefixes potentially executable strings with an apostrophe; choose original-string export for trusted machine processing.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "dataset-value-mapper",
  "category": "data-tools",
  "built": true,
  "requirements": "Select a column and provide a comma-separated replacement CSV with exactly the headers from,to. Each source value must appear once in the dictionary. Matching is exact, case-sensitive and does not trim spaces. An empty source value is allowed. Values in every other column stay unchanged. Keep unmatched values as they are, replace them with empty strings, or stop with an error until the dictionary is complete. The unmatched-values CSV lists each missing value, its record count and its first source-record number. Nothing is guessed from similar spelling or inferred types. Compare the mapped, changed and unmatched record counts with the result preview. Download the mapped CSV, unmatched-values CSV and JSON report. Default formula protection prefixes potentially executable strings with an apostrophe; choose original-string export for trusted machine processing.",
  "implementation": {
    "fields": [
      {
        "key": "delimiter",
        "label": "Input CSV separator",
        "value": ",",
        "type": "select",
        "values": [
          ",",
          ";",
          "\t"
        ]
      },
      {
        "key": "column",
        "label": "Column to map",
        "value": "status",
        "type": "text"
      },
      {
        "key": "mapping",
        "label": "Replacement dictionary",
        "value": "from,to\npending,Waiting\ndone,Complete",
        "type": "textarea",
        "help": "Comma-separated CSV with exactly the headers from,to. Source values must be unique. Matching is exact and case-sensitive; an empty source value is permitted."
      },
      {
        "key": "unmapped",
        "label": "Unmapped values",
        "value": "Keep original",
        "type": "select",
        "values": [
          "Keep original",
          "Replace with empty",
          "Stop with error"
        ]
      },
      {
        "key": "exportMode",
        "label": "Spreadsheet formula handling",
        "value": "Protect formulas",
        "type": "select",
        "values": [
          "Protect formulas",
          "Preserve original cells"
        ]
      }
    ],
    "live": true,
    "presentation": "metrics",
    "note": "Apply an explicit replacement dictionary to one column. Download the unmatched-value report with occurrence counts and first source-record numbers. Duplicate source mappings are rejected; no value is guessed or silently discarded. Use a header row with unique column names. Up to 1,000,000 input characters, 10,000 data records, 100 columns and 100,000 cells. Strings and spaces are preserved. Output CSV uses commas and quotes every cell. Protect formulas prefixes risky output cells with an apostrophe; choose Preserve original cells only for trusted machine processing. Runs on your device.",
    "experience": {
      "automatic": true,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Your text",
      "placeholder": "Type or paste your input…",
      "help": "Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.",
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Replace values in one CSV column using an explicit dictionary. Keep every other field and report values without a match.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

### How to use Dataset value mapper

1. Paste CSV and enter the exact column name to map.
2. Paste a from,to replacement dictionary and choose how unmatched values are handled.
3. Review the changed records and unmatched report, then download the result.

## Useful next steps

- [CSV row filter](https://happytails.ai/en/data-tools/csv-row-filter/) ([Markdown](https://happytails.ai/en/data-tools/csv-row-filter.md))

- [CSV cell expansion](https://happytails.ai/en/data-tools/csv-cell-expansion/) ([Markdown](https://happytails.ai/en/data-tools/csv-cell-expansion.md))

- [CSV formula injection checker](https://happytails.ai/en/data-tools/csv-formula-injection-checker/) ([Markdown](https://happytails.ai/en/data-tools/csv-formula-injection-checker.md))

- [CSV unpivot](https://happytails.ai/en/data-tools/csv-unpivot/) ([Markdown](https://happytails.ai/en/data-tools/csv-unpivot.md))

## What to expect

Replace values in one CSV column using an explicit dictionary. Keep every other field and report values without a match. Select a column and provide a comma-separated replacement CSV with exactly the headers from,to. Each source value must appear once in the dictionary. Matching is exact, case-sensitive and does not trim spaces. An empty source value is allowed. Values in every other column stay unchanged. Keep unmatched values as they are, replace them with empty strings, or stop with an error until the dictionary is complete. The unmatched-values CSV lists each missing value, its record count and its first source-record number. Nothing is guessed from similar spelling or inferred types. Compare the mapped, changed and unmatched record counts with the result preview. Download the mapped CSV, unmatched-values CSV and JSON report. Default formula protection prefixes potentially executable strings with an apostrophe; choose original-string export for trusted machine processing.

### Try a small example

```
id,status
001,pending
002,done
003,unknown
```
