> For the complete documentation index, see [llms.txt](https://docs.sdv.dev/rdt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sdv.dev/rdt/transformers-glossary/deep-data-understanding/phone-number/newnumbermapper.md).

# ＊ NewNumberMapper

{% hint style="info" %}
**＊SDV Enterprise Feature.** This feature is available to our licensed users and is not currently in our public library. For more information, visit our page to [Explore SDV](https://docs.sdv.dev/sdv/explore/sdv-enterprise/compare-features).
{% endhint %}

The `NewNumberMapper` creates and applies a consistent mapping between real numbers and fake, synthetic numbers. The mapping preserves the geographical context of the phone numbers. That is, numbers belonging to a region are mapped to fake phone numbers in the same region.

```python
from rdt.transformers.phone_number import NewNumberMapper

mapper = NewNumberMappper()
```

## Parameters

**`default_country`**: If phone number does not have an international country code, provide the country code to use.

<table data-header-hidden><thead><tr><th width="215"></th><th></th></tr></thead><tbody><tr><td>(default) <code>None</code></td><td>No default country. All phone numbers must have international country codes.</td></tr><tr><td><code>&#x3C;string></code></td><td>A string representing an <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">Alpha-2 country code</a> (<code>"US"</code>)</td></tr></tbody></table>

### Examples

```python
from rdt.transformers.phone_number import NewNumberMapper
mapper = NewNumberMappper(default_country='US')
```

## Attributes

After fitting the transformer, you can access the learned values through the attributes.

**`mapping`**: A dictionary that maps the original, real phone number to a new, fake phone number

```python
>>> transformer.mapping
{
  '(617)253-3400': '(617)100-1234',
  '(617)253-2142': '(617)555-2223',
  ...
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sdv.dev/rdt/transformers-glossary/deep-data-understanding/phone-number/newnumbermapper.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
